Browse files

get rid of unnecessary statements

  • Loading branch information...
1 parent e03eebb commit 035b7ea69157de6524acf019a04479eabaadf52c @bluesmoon committed Sep 26, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 boomerang.js
View
6 boomerang.js
@@ -282,15 +282,17 @@ boomr = {
for(k in this.plugins) {
if(this.plugins.hasOwnProperty(k)) {
- // config[pugin].enabled has been set to false
+ // config[plugin].enabled has been set to false
if( config[k]
&& config[k].hasOwnProperty("enabled")
&& config[k].enabled === false
) {
impl.disabled_plugins[k] = 1;
continue;
}
- else if(impl.disabled_plugins[k]) {
+
+ // plugin was previously disabled but is now enabled
+ if(impl.disabled_plugins[k]) {
delete impl.disabled_plugins[k];
}

0 comments on commit 035b7ea

Please sign in to comment.