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

55 lines
1.8 KiB
JavaScript

// ImageTrack对象
ImageTrack = function ImageTrack() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof ImageTrack)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('ImageTrack 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(ImageTrack, "ImageTrack");
bodavm.toolsFunc.defineProperty(ImageTrack.prototype, "frameCount", {
configurable: true,
enumerable: true,
get: function frameCount() {
return bodavm.toolsFunc.dispatch(this, ImageTrack.prototype, "ImageTrack", "frameCount_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(ImageTrack.prototype, "animated", {
configurable: true,
enumerable: true,
get: function animated() {
return bodavm.toolsFunc.dispatch(this, ImageTrack.prototype, "ImageTrack", "animated_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(ImageTrack.prototype, "repetitionCount", {
configurable: true,
enumerable: true,
get: function repetitionCount() {
return bodavm.toolsFunc.dispatch(this, ImageTrack.prototype, "ImageTrack", "repetitionCount_get", arguments);
},
set: undefined
});
bodavm.toolsFunc.defineProperty(ImageTrack.prototype, "selected", {
configurable: true,
enumerable: true,
get: function selected() {
return bodavm.toolsFunc.dispatch(this, ImageTrack.prototype, "ImageTrack", "selected_get", arguments);
},
set: function selected() {
return bodavm.toolsFunc.dispatch(this, ImageTrack.prototype, "ImageTrack", "selected_set", arguments);
}
});