chjj / zest

An absurdly fast CSS selector engine.
MIT License
238 stars 14 forks source link

minor performance update for slice shim #15

Closed stephenmathieson closed 11 years ago

stephenmathieson commented 11 years ago

document.getElementsByTagName('*') is more expensive than need be. IE will barf when attempting to slice an empty NodeList, so there's no need to query each element in the DOM.

chjj commented 11 years ago

Cool. Sounds good to me.