mirror of https://github.com/gorhill/uBlock.git
jshint
This commit is contained in:
parent
80ef8f3777
commit
a3d166d18e
|
@ -226,6 +226,9 @@ var updateDynamicFilterCell = function(scope, des, type, rule) {
|
||||||
var updateAllDynamicFilters = function() {
|
var updateAllDynamicFilters = function() {
|
||||||
var rules = popupData.dynamicFilterRules;
|
var rules = popupData.dynamicFilterRules;
|
||||||
for ( var key in rules ) {
|
for ( var key in rules ) {
|
||||||
|
if ( rules.hasOwnProperty(key) === false ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
updateDynamicFilterCell(
|
updateDynamicFilterCell(
|
||||||
key.charAt(0),
|
key.charAt(0),
|
||||||
key.slice(2, key.indexOf(' ', 2)),
|
key.slice(2, key.indexOf(' ', 2)),
|
||||||
|
@ -512,7 +515,7 @@ var setDynamicFilterHandler = function() {
|
||||||
if ( hotspotId === 'dynaAllow' ) {
|
if ( hotspotId === 'dynaAllow' ) {
|
||||||
action = 2;
|
action = 2;
|
||||||
} else if ( hotspotId === 'dynaNoop' ) {
|
} else if ( hotspotId === 'dynaNoop' ) {
|
||||||
action = 3
|
action = 3;
|
||||||
} else {
|
} else {
|
||||||
action = 1;
|
action = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue