buffer-methods
Advanced tools
Comparing version 1.0.0 to 1.0.1
const _ = require('lodash'); | ||
module.exports = (model) => { | ||
const _methodBuffer = []; | ||
let _methodBuffer = []; | ||
const _model = _.reduce( | ||
@@ -24,4 +24,5 @@ _.keys(model), | ||
_.forEach(_methodBuffer, ({ key, args }) => model[key].apply({}, args)); | ||
_methodBuffer = []; | ||
} | ||
} | ||
}; |
{ | ||
"name": "buffer-methods", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Allows you to delay object method resolution until a resolve function is called", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1208
37