Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5a1a0c9

Browse files
committed
perf(nodeName_): simplify the code and reduce the number of DOM calls
1 parent 4ebbd7e commit 5a1a0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ function makeMap(str) {
611611

612612

613613
function nodeName_(element) {
614-
return lowercase(element.nodeName ? element.nodeName : element[0].nodeName);
614+
return lowercase(element.nodeName || element[0].nodeName);
615615
}
616616

617617

0 commit comments

Comments
 (0)