nl_tokens: * @method bind ( <scope > [ arg1 ] ... ) @returns Function @short Binds <scope > as the %this% object for the function when it is called . Also allows currying an unlimited number of parameters . @extra currying means setting parameters ( [ arg1 ] [ arg2 ] etc . ) ahead of time so that they are passed when the function is called later . If you pass additional parameters when the function is actually called they will be added will be added to the end of the curried parameters . This method is provided for browsers that don t support it internally . @example
pl_tokens: function ( scope ) { var fn = this , args = multiArgs ( arguments ) . slice ( 1 ) , nop , bound ; if ( ! isFunction ( this ) ) { throw new TypeError ( 'Function.prototype.bind called on a non-function' ) ; } bound = function ( ) { return fn . apply ( fn . prototype && this instanceof fn ? this : scope , args . concat ( multiArgs ( arguments ) ) ) ; } <mask> . prototype = this . prototype ; return bound ; }