From 9c5b96aec109f7b37cb2c861525a084a65a817ea Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 19 Jul 2017 02:27:52 +0200 Subject: adding tasks --- lib/vendor/Loader.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/vendor/Loader.js') 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 -- cgit v1.2.3-70-g09d2