Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
perf(selector): Remove an useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored and [email protected] committed May 20, 2014
1 parent 4543668 commit 6fea97d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/core_dom/selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ class DirectiveSelector {
partialSelection, element, nodeName);

// Select .name
if ((element.classes) != null) {
for (var name in element.classes) {
classes[name] = true;
partialSelection = elementSelector.selectClass(builder,
partialSelection, element, name);
}
for (var name in element.classes) {
classes[name] = true;
partialSelection = elementSelector.selectClass(builder,
partialSelection, element, name);
}

// Select [attributes]
Expand Down

0 comments on commit 6fea97d

Please sign in to comment.