search for: testbind

Displaying 1 result from an estimated 1 matches for "testbind".

Did you mean: testbin
2006 Feb 21
4
[Prototype] implementation of bind()?
http://dev.rubyonrails.org/browser/spinoffs/prototype/src/base.js contains this definition: Function.prototype.bind = function() { var __method = this, args = $A(arguments), object = args.shift(); return function() { return __method.apply(object, args.concat($A(arguments))); } } In other words, if a bound function is given the arguments (This,A,B,C) the underlying