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:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.