UNPKG

fluo

Version:

A prototype-based fork of the Reflux data flow library similar to Facebook Flux

14 lines (10 loc) 283 B
module.exports = function(store, definition) { for (var name in definition) { var property = definition[name]; if (typeof property !== 'function' || !definition.hasOwnProperty(name)) { continue; } store[name] = property.bind(store); } return store; };