Closed jridgewell closed 6 years ago
Seems OK (I'd leave a comment in case someone tries to remove it), though I'd expect jscompiler to do this for you.
A comment would be nice, especially since we don't do this in other places (for normal Arrays).
I'm not sure that Closure Compiler will make this optimization for you.
Added a comment.
Caches the
NamedNodeMap
(Element#attributes
array) length, which is faster on Chrome and Safari.