build dist

This commit is contained in:
Alexander Zobnin
2018-08-28 20:47:45 +03:00
parent e48afe864d
commit 14fba8fe5e
28 changed files with 308 additions and 172 deletions

View File

@@ -250,10 +250,26 @@ System.register(['lodash', 'moment'], function (_export, _context) {
};
}
// Fix for backward compatibility with lodash 2.4
/**
* Apply function one by one: `sequence([a(), b(), c()]) = c(b(a()))`
* @param {*} funcsArray functions to apply
*/
_export('callOnce', callOnce);
function sequence(funcsArray) {
return function (result) {
for (var i = 0; i < funcsArray.length; i++) {
result = funcsArray[i].call(this, result);
}
return result;
};
}
// Fix for backward compatibility with lodash 2.4
_export('sequence', sequence);
return {
setters: [function (_lodash) {
_ = _lodash.default;