summaryrefslogtreecommitdiffstats
path: root/lib/models/pluginDependency.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-05-02 22:02:24 +0200
committerSamy Pesse <samypesse@gmail.com>2016-05-02 22:02:24 +0200
commit30c96c37c2145a28710e2875c677d37156fdaa92 (patch)
tree1835c91e04ef3fdbc0fbca45b4a3aa1f4dcfca35 /lib/models/pluginDependency.js
parent20f1cf3dff685ead53c85a9cd751ae9dacea7289 (diff)
downloadgitbook-30c96c37c2145a28710e2875c677d37156fdaa92.zip
gitbook-30c96c37c2145a28710e2875c677d37156fdaa92.tar.gz
gitbook-30c96c37c2145a28710e2875c677d37156fdaa92.tar.bz2
Adapt Plugin.listAll to use a list of PluginDependency
Diffstat (limited to 'lib/models/pluginDependency.js')
-rw-r--r--lib/models/pluginDependency.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/pluginDependency.js b/lib/models/pluginDependency.js
index 740d74f..bb8e4b4 100644
--- a/lib/models/pluginDependency.js
+++ b/lib/models/pluginDependency.js
@@ -46,7 +46,7 @@ PluginDependency.createFromString = function(s) {
name = name.slice(1);
}
- return new Plugin({
+ return new PluginDependency({
name: name,
version: version || DEFAULT_VERSION,
enabled: enabled