combine-callbacks
Combine multiple callbacks into one. Divide up code into smaller units. Improve the reusability & make the code clearer.
Installation
$ npm install combine-callbacks
Usage
var combineCallbacks = ; var { evt; };var { ... }; var onClick = ;document;
For more examples see the test.
API
combineCallbacks(fn1[, fn2[, fn3...]])
Returns the final combined callback which receives arguments & context, and then passes them into the original functions.
combineCallbacks(arrayOfFuncs)
You get the idea.
License
MIT License, Copyright (c) 2015 Riophae Lee