summaryrefslogtreecommitdiff
path: root/src/static/js/pluginfw/plugins.js
diff options
context:
space:
mode:
authorStefan <mu.stefan@googlemail.com>2016-11-20 11:28:17 +0100
committerStefan <mu.stefan@googlemail.com>2016-11-20 11:28:17 +0100
commit00c9caf7a3ebbc6824a65a2b86fd0cc8391ecb9f (patch)
treea494d39e7bb6a18984355e8d287f9c88b5538f19 /src/static/js/pluginfw/plugins.js
parent602fd4629abc45aa94013df9644d681ad088002e (diff)
downloadetherpad-lite-00c9caf7a3ebbc6824a65a2b86fd0cc8391ecb9f.zip
Updated npm to 4.0.2 and removed recursive searching for ep-plugins
Diffstat (limited to 'src/static/js/pluginfw/plugins.js')
-rw-r--r--src/static/js/pluginfw/plugins.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/static/js/pluginfw/plugins.js b/src/static/js/pluginfw/plugins.js
index dfdf941e..0d0fa1ed 100644
--- a/src/static/js/pluginfw/plugins.js
+++ b/src/static/js/pluginfw/plugins.js
@@ -117,13 +117,14 @@ exports.getPackages = function (cb) {
delete packages[name].parent;
}
- if (deps[name].dependencies !== undefined) flatten(deps[name].dependencies);
+ // I don't think we need recursion
+ //if (deps[name].dependencies !== undefined) flatten(deps[name].dependencies);
});
}
var tmp = {};
tmp[data.name] = data;
- flatten(tmp);
+ flatten(tmp[undefined].dependencies);
cb(null, packages);
});
};