Merge pull request #2745 from NativeScript/cankov-fix-specificity

Remove redundant specificity and rarity getter
This commit is contained in:
Panayot Cankov
2016-09-17 16:39:45 +03:00
committed by GitHub

View File

@@ -186,8 +186,6 @@ export class AttributeSelector extends SimpleSelector {
return;
}
}
public get specificity(): number { return Specificity.Attribute; }
public get rarity(): number { return Specificity.Attribute; }
public toString(): string { return `[${this.attribute}${wrap(this.test)}${(this.test && this.value) || ''}]${wrap(this.combinator)}`; }
public match(node: Node): boolean { return false; }
public mayMatch(node: Node): boolean { return true; }