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