summaryrefslogtreecommitdiffstats
path: root/module/web/app/scripts/utils/lazyRequire.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/app/scripts/utils/lazyRequire.js')
-rw-r--r--module/web/app/scripts/utils/lazyRequire.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/web/app/scripts/utils/lazyRequire.js b/module/web/app/scripts/utils/lazyRequire.js
index b381e0ce6..96c07aa24 100644
--- a/module/web/app/scripts/utils/lazyRequire.js
+++ b/module/web/app/scripts/utils/lazyRequire.js
@@ -1,17 +1,18 @@
// Define the module.
define(
[
- "require", "underscore"
+ 'require', 'underscore'
],
function( require, _ ){
+ 'use strict';
// Define the states of loading for a given set of modules
// within a require() statement.
var states = {
- unloaded: "UNLOADED",
- loading: "LOADING",
- loaded: "LOADED"
+ unloaded: 'UNLOADED',
+ loading: 'LOADING',
+ loaded: 'LOADED'
};
@@ -86,7 +87,7 @@ define(
if (!_.has(instances, dependencies))
instances[dependencies] = lazyRequire.once();
- return instances[dependencies](dependencies, loadCallback)
+ return instances[dependencies](dependencies, loadCallback);
};