merge-context
like _.bind() and _.bindAll() but extends the context (this
) instead of replacing it
Usage:
var mergeCtx = ; var { console; } // someFunction();// $ undefined someFunction = ; // someFunction();// $ true
.all( objOfFunctions, stuff )
To do an object of functions all at once (like _.bindAll
)
var mergeCtx = ; var someObject = { ... } { ... } { ... };someObject = mergeCtxallsomeObject sails: ; // Now I can do:someObject;someObject;someObject; // And they'll all have access to `this.sails` in there.
License
MIT c. Mike McNeil 2014