(minor) refactoring

This commit is contained in:
cloudhead
2010-07-07 11:59:09 +02:00
parent 5fcad4d348
commit 944b6703ad

View File

@@ -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);
});
}
},