fix(selector): SelectorMatcher match elements with :not selector (#12977)

This commit is contained in:
Dzmitry Shylovich
2016-12-09 21:45:48 +03:00
committed by Victor Berchet
parent f0b0762f4a
commit 9a8423da36
2 changed files with 8 additions and 3 deletions

View File

@ -297,12 +297,12 @@ export class SelectorMatcher {
return false;
}
let selectables = map.get(name);
const starSelectables = map.get('*');
let selectables: SelectorContext[] = map.get(name) || [];
const starSelectables: SelectorContext[] = map.get('*');
if (starSelectables) {
selectables = selectables.concat(starSelectables);
}
if (!selectables) {
if (selectables.length === 0) {
return false;
}
let selectable: SelectorContext;