diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-06-07 11:06:53 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-06-07 11:06:53 +0200 |
commit | 67106e86981852d2d55830a8fca494c7d33eff37 (patch) | |
tree | b477ab3acb2b2db8f333e1e92a61432ae60dfb40 /lib/modifiers/config/removePlugin.js | |
parent | dc2ab51a8812636143430459fab97027ad60ce23 (diff) | |
download | gitbook-67106e86981852d2d55830a8fca494c7d33eff37.zip gitbook-67106e86981852d2d55830a8fca494c7d33eff37.tar.gz gitbook-67106e86981852d2d55830a8fca494c7d33eff37.tar.bz2 |
Improve plugins config modifier
Diffstat (limited to 'lib/modifiers/config/removePlugin.js')
-rw-r--r-- | lib/modifiers/config/removePlugin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modifiers/config/removePlugin.js b/lib/modifiers/config/removePlugin.js index dd7c248..ec06d1e 100644 --- a/lib/modifiers/config/removePlugin.js +++ b/lib/modifiers/config/removePlugin.js @@ -16,7 +16,7 @@ function removePlugin(config, pluginName) { } // Remove the dependency from the list - deps = deps.filter(function(dep) { + deps = deps.filterNot(function(dep) { return dep.getName() === pluginName; }); return config.setPluginDependencies(deps); |