Function.prototype.bind = function(){
var fn = this, args = Array.prototype.slice.call(arguments), object = args.shift();
return function(){
return fn.apply(object,
args.concat(Array.prototype.slice.call(arguments)));
};
};
Friday, October 31, 2008
Learning Advanced JavaScript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment