> 1) Is $("#phrases").find("li") faster than $("#phrases li")?

Nope, your way is better. I just copy-pasta'd that and didn't think
about it.

> 2) Is there a way not to have to repeat the method that takes care of
> the rephrasing in the test suite? As you can see in the updated
> version (http://pastie.org/341151) I'm repeating the code so it work
> for consequent events.

The test suite introduces a lot of code and raises the opportunity for
bugs in the testing code itself. You could use the original code and
just check that the classes are correctly set in a few cases when you
perform next and prev operations.

Reply via email to