mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
WS: use dot notation for JS properties
This commit is contained in:
parent
49352d0732
commit
cc8ed1580c
1 changed files with 5 additions and 5 deletions
|
|
@ -45,7 +45,7 @@ export class ArdourClient {
|
|||
|
||||
set handlers (handlers) {
|
||||
this._handlers = handlers || {};
|
||||
this._channel.onError = this._handlers['onError'] || console.log;
|
||||
this._channel.onError = this._handlers.onError || console.log;
|
||||
}
|
||||
|
||||
// Access to the object-oriented API (enabled by default)
|
||||
|
|
@ -133,14 +133,14 @@ export class ArdourClient {
|
|||
_setConnected (connected) {
|
||||
this._connected = connected;
|
||||
|
||||
if (this._handlers['onConnected']) {
|
||||
this._handlers['onConnected'](this._connected);
|
||||
if (this._handlers.onConnected) {
|
||||
this._handlers.onConnected(this._connected);
|
||||
}
|
||||
}
|
||||
|
||||
_handleMessage (msg, inbound) {
|
||||
if (this._handlers['onMessage']) {
|
||||
this._handlers['onMessage'](msg, inbound);
|
||||
if (this._handlers.onMessage) {
|
||||
this._handlers.onMessage(msg, inbound);
|
||||
}
|
||||
|
||||
if (inbound) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue