mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
45 lines
1.5 KiB
JavaScript
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);
|
|
}
|
|
}); |