Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -136,17 +136,20 @@ |
{ |
if (!(filter instanceof ActiveFilter) || filter.disabled) |
return; |
let hasEnabled = false; |
for (let i = 0; i < filter.subscriptions.length; i++) |
{ |
if (!filter.subscriptions[i].disabled) |
+ { |
hasEnabled = true; |
+ break; |
+ } |
} |
if (!hasEnabled) |
return; |
if (filter instanceof RegExpFilter) |
defaultMatcher.add(filter); |
else if (filter instanceof ElemHideBase) |
{ |
@@ -168,17 +171,20 @@ |
return; |
if (!filter.disabled) |
{ |
let hasEnabled = false; |
for (let i = 0; i < filter.subscriptions.length; i++) |
{ |
if (!filter.subscriptions[i].disabled) |
+ { |
hasEnabled = true; |
+ break; |
+ } |
} |
if (hasEnabled) |
return; |
} |
if (filter instanceof RegExpFilter) |
defaultMatcher.remove(filter); |
else if (filter instanceof ElemHideBase) |