diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-15 22:39:26 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-15 22:39:26 +0100 |
commit | 2375296e67cf813db2076877ba64c0d3dfae2b3f (patch) | |
tree | bc50f59b4a5a87debefa70dc7dd83c47ebe42f40 /lib/plugins | |
parent | b4fcd2da14159106cfe1911ba6321e112ffb9722 (diff) | |
download | gitbook-2375296e67cf813db2076877ba64c0d3dfae2b3f.zip gitbook-2375296e67cf813db2076877ba64c0d3dfae2b3f.tar.gz gitbook-2375296e67cf813db2076877ba64c0d3dfae2b3f.tar.bz2 |
Add base _setup for pluginslist
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/index.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/plugins/index.js b/lib/plugins/index.js index f31f1b2..ac595ac 100644 --- a/lib/plugins/index.js +++ b/lib/plugins/index.js @@ -52,9 +52,14 @@ PluginsManager.prototype.load = function(name) { .thenResolve(plugin); }) - .then(function(plugin) { - that.plugins.push(plugin); - }); + // Setup the plugin + .then(this._setup); +}; + +// Setup a plugin +// Register its filter, blocks, etc +PluginsManager.prototype._setup = function(plugin) { + }; module.exports = PluginsManager; |