Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shootaroo committed Jun 12, 2014
1 parent 562645a commit d420c14
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ var HTMLHint = (function (undefined) {
var rules = HTMLHint.rules,
rule;
for (var id in ruleset){
if (ruleset[id]) {
rule = rules[id];
if (rule !== undefined){
rule.init(parser, reporter, ruleset[id]);
}
rule = rules[id];
if (rule !== undefined && ruleset[id] !== false){
rule.init(parser, reporter, ruleset[id]);
}
}

Expand Down

0 comments on commit d420c14

Please sign in to comment.