From a3d166d18e507ae243489d75c31002048c61354d Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 10 Jan 2015 11:44:37 -0500 Subject: [PATCH] jshint --- src/js/popup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/popup.js b/src/js/popup.js index c232459ac..b1ebe6adb 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -226,6 +226,9 @@ var updateDynamicFilterCell = function(scope, des, type, rule) { var updateAllDynamicFilters = function() { var rules = popupData.dynamicFilterRules; for ( var key in rules ) { + if ( rules.hasOwnProperty(key) === false ) { + continue; + } updateDynamicFilterCell( key.charAt(0), key.slice(2, key.indexOf(' ', 2)), @@ -512,7 +515,7 @@ var setDynamicFilterHandler = function() { if ( hotspotId === 'dynaAllow' ) { action = 2; } else if ( hotspotId === 'dynaNoop' ) { - action = 3 + action = 3; } else { action = 1; }