(minor) refactoring
This commit is contained in:
parent
752bf96e53
commit
e2b1a8af91
@ -40,7 +40,7 @@ tree.Ruleset.prototype = {
|
||||
if (this._rulesets) { return this._rulesets }
|
||||
else {
|
||||
return this._rulesets = this.rules.filter(function (r) {
|
||||
if (r instanceof tree.Ruleset || r instanceof tree.mixin.Definition) { return r }
|
||||
return (r instanceof tree.Ruleset) || (r instanceof tree.mixin.Definition);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user