home *** CD-ROM | disk | FTP | other *** search
- class Delegate extends Object
- {
- var func;
- function Delegate()
- {
- super();
- }
- function DelegateArgs(f)
- {
- this.func = f;
- }
- static function create(obj, func)
- {
- var _loc3_ = function()
- {
- var _loc2_ = arguments.callee.target;
- func = arguments.callee.func;
- var _loc3_ = arguments.callee.arg;
- _loc3_ = _loc3_.concat(arguments);
- return func.apply(_loc2_,_loc3_);
- };
- _loc3_.target = obj;
- _loc3_.func = func;
- _loc3_.arg = arguments.slice(2);
- return _loc3_;
- }
- function createDelegate(obj)
- {
- return Delegate.create(obj,this.func);
- }
- }
-