(minor) refactoring

This commit is contained in:
cloudhead 2010-07-07 11:59:09 +02:00
parent 752bf96e53
commit e2b1a8af91

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