strider-extension-loader
Advanced tools
Comparing version 0.0.9 to 0.0.10
12
main.js
@@ -146,7 +146,9 @@ // | ||
} | ||
var initCount = 0; | ||
// now to initialize | ||
var self = this; | ||
loaded.forEach(function(l) { | ||
for (var i=0; i < loaded.length; i++) { | ||
var l = loaded[i]; | ||
if (l.ext === null || !l.ext[type]) { | ||
return; | ||
continue; | ||
} | ||
@@ -186,8 +188,10 @@ // Keep track of which extensions are using which routes. | ||
l.ext.worker(context, self.parallel()); | ||
initCount++; | ||
} | ||
if (type === 'webapp' && typeof(l.ext.webapp) === 'function') { | ||
l.ext.webapp(context, self.parallel()); | ||
initCount++; | ||
} | ||
}); | ||
if (loaded.length === 0) { | ||
} | ||
if (initCount === 0) { | ||
// Bit odd, but necessary. | ||
@@ -194,0 +198,0 @@ this(null, []); |
{ | ||
"name": "strider-extension-loader", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Load Strider extensions", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
22177
445