DOM utilities: potentially more efficient adding/removing of class names

1 view
Skip to first unread message

FND

unread,
Aug 15, 2007, 7:27:01 AM8/15/07
to Tiddly...@googlegroups.com
Hey guys,

I just stumbled across Webshots's helper functions for adding and
removing class names:
http://p.webshots.net/js/chromeUtil.js
(Look for hasClass(), addClass(), delClass() and setClass() - whereas
the latter is optional.)

They are RegEx-based, so they *might* be more efficient than TW's
current equivalents.

I'm not an expert on this, but I thought it was worth mentioning.


-- F.

Reply all
Reply to author
Forward
0 new messages