diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-19 02:27:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-19 02:27:52 +0200 |
| commit | 9c5b96aec109f7b37cb2c861525a084a65a817ea (patch) | |
| tree | 3aa2f97b5134892a9f227c6c8fdc8cd778679771 /lib/vendor/Loader.js | |
| parent | 2f2c1ef4029dee17be0d16acdd60b7d1718d519f (diff) | |
adding tasks
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 |
