boda_jsEnv/env_xbb_lastest_bo/env/PeriodicSyncManager.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

45 lines
1.5 KiB
JavaScript

// PeriodicSyncManager对象
PeriodicSyncManager = function PeriodicSyncManager() {
let arg = arguments[0];
if (arg != 'bobo' && (this instanceof PeriodicSyncManager)) {
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
}
;
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('PeriodicSyncManager 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(PeriodicSyncManager, "PeriodicSyncManager");
bodavm.toolsFunc.defineProperty(PeriodicSyncManager.prototype, "getTags", {
configurable: true,
enumerable: true,
writable: true,
value: function getTags() {
return bodavm.toolsFunc.dispatch(this, PeriodicSyncManager.prototype, "PeriodicSyncManager", "getTags", arguments);
}
});
bodavm.toolsFunc.defineProperty(PeriodicSyncManager.prototype, "register", {
configurable: true,
enumerable: true,
writable: true,
value: function register() {
return bodavm.toolsFunc.dispatch(this, PeriodicSyncManager.prototype, "PeriodicSyncManager", "register", arguments);
}
});
bodavm.toolsFunc.defineProperty(PeriodicSyncManager.prototype, "unregister", {
configurable: true,
enumerable: true,
writable: true,
value: function unregister() {
return bodavm.toolsFunc.dispatch(this, PeriodicSyncManager.prototype, "PeriodicSyncManager", "unregister", arguments);
}
});