Skip to content

Commit

Permalink
too clever
Browse files Browse the repository at this point in the history
closes #13
  • Loading branch information
jhchen committed Sep 21, 2016
1 parent 675c2c3 commit f92f1ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export function query(query: string | Node | Scope, scope: Scope = Scope.ANY): A
} else if (query instanceof HTMLElement) {
let names = (query.getAttribute('class') || '').split(/\s+/);
for (let i in names) {
if (match = classes[names[i]]) break;
match = classes[names[i]]
if (match) break;
}
match = match || tags[query.tagName];
}
Expand Down

0 comments on commit f92f1ed

Please sign in to comment.