mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
10 lines
501 B
JavaScript
10 lines
501 B
JavaScript
// Scheduler对象
|
|
Scheduler = function Scheduler(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
|
bodavm.toolsFunc.safeProto(Scheduler, "Scheduler");
|
|
bodavm.toolsFunc.defineProperty(Scheduler.prototype, "postTask", {configurable:true, enumerable:true, writable:true, value:function postTask (){return bodavm.toolsFunc.dispatch(this, Scheduler.prototype, "Scheduler", "postTask", arguments)}});
|
|
|
|
|
|
// scheduler对象
|
|
var scheduler = {}
|
|
scheduler.__proto__=Scheduler.prototype;
|