diff options
Diffstat (limited to 'lib/vendor/Loader.js')
| -rw-r--r-- | lib/vendor/Loader.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/vendor/Loader.js b/lib/vendor/Loader.js index 2668267..ad42b17 100644 --- a/lib/vendor/Loader.js +++ b/lib/vendor/Loader.js @@ -41,12 +41,9 @@ module.exports = (function(){ // (boolean) Is the loader ready? Loader.prototype.isReady = function(){ - for (var s in this.assets) { - if (this.assets.hasOwnProperty(s) && this.assets[s] != true) { - return false; - } - } - return true; + return ! Object.keys(this.assets).some( (key) => { + return ! this.assets[key] + }) } // (float) Percentage of assets remaining |
