xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

57 lines
1.8 KiB
JavaScript

// MIDIAccess对象
MIDIAccess = function MIDIAccess() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof MIDIAccess)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('MIDIAccess 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(MIDIAccess, "MIDIAccess");
MIDIAccess.prototype.__proto__ = EventTarget.prototype;
MIDIAccess.__proto__ = EventTarget;
bodavm.toolsFunc.defineProperty(MIDIAccess.prototype, "inputs", {
configurable: true,
enumerable: true,
get: function inputs() {
return bodavm.toolsFunc.dispatch(this, MIDIAccess.prototype, "MIDIAccess", "inputs_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(MIDIAccess.prototype, "outputs", {
configurable: true,
enumerable: true,
get: function outputs() {
return bodavm.toolsFunc.dispatch(this, MIDIAccess.prototype, "MIDIAccess", "outputs_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(MIDIAccess.prototype, "sysexEnabled", {
configurable: true,
enumerable: true,
get: function sysexEnabled() {
return bodavm.toolsFunc.dispatch(this, MIDIAccess.prototype, "MIDIAccess", "sysexEnabled_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(MIDIAccess.prototype, "onstatechange", {
configurable: true,
enumerable: true,
get: function onstatechange() {
return bodavm.toolsFunc.dispatch(this, MIDIAccess.prototype, "MIDIAccess", "onstatechange_get", arguments);
},
set: function onstatechange() {
return bodavm.toolsFunc.dispatch(this, MIDIAccess.prototype, "MIDIAccess", "onstatechange_set", arguments);
}
});