diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..2b6f469 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,3 @@ +{ + "esversion": 6 +} diff --git a/package.json b/package.json index 224e195..4f477fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orcajs", - "version": "1.1.2", + "version": "1.1.3", "main": "./dist/orca.js", "license": "MIT", "description": "orchestrate your javascript", diff --git a/src/orca.js b/src/orca.js index 22af3e3..e66f2e2 100644 --- a/src/orca.js +++ b/src/orca.js @@ -1,4 +1,5 @@ -import _ from 'lodash'; +import {intersection, reverse, cloneDeep, isFunction, isArray, get, set, concat, uniq, forEach} from 'lodash'; +const _ = {intersection, reverse, cloneDeep, isFunction, isArray, get, set, concat, uniq, forEach}; /** Class for organizing javascript callbacks. */ class Orca { @@ -67,7 +68,7 @@ class Orca { let called = namespaces; - _.each(_.uniq(namespaces), (n) => { this._runNamespace(n, called); }); + _.forEach(_.uniq(namespaces), (n) => { this._runNamespace(n, called); }); } /**