summaryrefslogtreecommitdiff
path: root/lib/vendor
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-07-19 02:27:52 +0200
committerJules Laplace <julescarbon@gmail.com>2017-07-19 02:27:52 +0200
commit9c5b96aec109f7b37cb2c861525a084a65a817ea (patch)
tree3aa2f97b5134892a9f227c6c8fdc8cd778679771 /lib/vendor
parent2f2c1ef4029dee17be0d16acdd60b7d1718d519f (diff)
adding tasks
Diffstat (limited to 'lib/vendor')
-rw-r--r--lib/vendor/Loader.js9
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