First off, big thanks to the Y!UI team for fixing the few bugs I have
submitted over the past few releases. You guys are doing great!
Having said that, I hate to say this... but I think there is another
bug in replaceClass.
The fix for the infinite loop works great. However, in my opinion, it
comes at the wrong point in the code. Or rather, the 'just add it if
nothing to replace' block needs to be run before the className
equality check as well as in the Batch callback.
I think once that is settled, replaceClass will work as expected :)
Once again, keep up the great work guys!