backplane-import/test-import — Issue #46: Check whether class name is absent/present when adding/removing class names
Author: backplane-import
Created: 2011-10-13 16:23:32+00:00
State: open

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

Originally filed by [markbirbeck](https://github.com/markbirbeck) on 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.