Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)));
- };
- };
Add Comment
Please, Sign In to add comment