zurb/joyride — pull request #2 by kennethkalmer (2011-11-18 09:55:35+00:00)
Title: Handle more than one missing tip target

I've got a case where I'm using Joyride on a very dynamic page, and I expected the tips to just move along the available 'tip targets' as they exist on the page. The code did seem to handle one missing target, jumping to the next one, but if more than two targets in a row didn't exist it bombed out.

I changed one condition to run in a loop, looking for the next target, and to break out the loop once we've reached the end of the list.