tween24
Version:
Tween24.js is animation library that enables fast coding using method chains.
20 lines (16 loc) • 457 B
text/typescript
export class FunctionExecuter {
private _func :Function;
private _args :any[]|null;
private _scope:any;
constructor(scope:any, func:Function, args:any[]|null) {
this._func = func;
this._args = args;
this._scope = scope;
}
execute() {
this._func.apply(this._scope, this._args);
}
clone():FunctionExecuter {
return new FunctionExecuter(this._scope, this._func, this._args);
}
}