backplane-import/backplanejs — Issue #46: Check whether class name is absent/present when adding/removing class names
Author: backplane-import
Created: 2011-10-15 20:21:52+00:00
State: open

### Imported from backplanejs Google Code [issue 46](http://code.google.com/p/backplanejs/issues/detail?id=46).

Reporter
markbirbeck

Date
24 Apr 2010 4:50:34 PM UTC

It's well known that adding and removing classes from HTML elements is
time-consuming.

We currently use the YUI addClass() and removeClass() functions to set and
remove classes, but we should also use the hasClass() function to check
whether we actually need to make the change.