Classlist is cool and all but its slow as hell. Mangle className manually
for maximum micro optimization.

On Jan 9, 2012 11:28 AM, "gamera" <[email protected]> wrote:

i would say the opposite: for long term maintainability, is better to not
rely on a third party library to perform such a simple task. Also, we
should use more ES5, since also m$ endorsed it, writing polyfills when/if
necessary.

var nodes = document.querySelectorAll('#x tr.zebra')
,   i = 0
,   node

while ( node = nodes[ i++ ] )
  node.classList.remove('zebra')

On Jan 8, 2012, at 10:43 PM, hj wrote: > I *REALLY* don't understand the
concern about performanc...

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to