Function.prototype.createDelegate = function(obj, args, ignoreArgs) { var method = this; return function { return method.apply(obj || window, (!args) ? arguments : (ignoreArgs === true) ? args : args.concat(Array.apply(null, arguments))); }; };
Saturday, October 10, 2009
Javascript function delegate
Labels:
javascript
Subscribe to:
Posts (Atom)