diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-06-09 16:08:59 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-06-09 16:08:59 +0200 |
commit | ecfef4a560dece9dd911017efdfc63fcc04bedfc (patch) | |
tree | 42d00f155c47a8a80e3a023c841a59f87b73885c /module/web/app/scripts/utils/lazyRequire.js | |
parent | restructured webui to single-page-app, removed jinja (diff) | |
download | pyload-ecfef4a560dece9dd911017efdfc63fcc04bedfc.tar.xz |
adapted to jshint config
Diffstat (limited to 'module/web/app/scripts/utils/lazyRequire.js')
-rw-r--r-- | module/web/app/scripts/utils/lazyRequire.js | 11 |
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); }; |