Syntax error, unrecognized expression: :nth-child in firefox
Great plugin, in some situation it throws this error in firefox. For me the simple fix to this was changing line 143 var $elem = base.$texts.find(':nth-child(' + (index + 1) + ')') to var $elem = base.$texts.find(':nth-child(' + parseInt(index + 1) + ')') and also line 186 var $elem = base.$texts.find(':nth-child(' + (base.currentIndex + 1) + ')') to var $elem = base.$texts.find(':nth-child(' + parseInt(base.currentIndex + 1) + ')')
Not really breaking anything but because sometimes the variable was not seen as a integer it would throw this error which kept piling up in the console, the animation was in no way affected by this.
Reproduced in Chrome also. And gripgrip's code doesn't help :(
$elem.addClass('current');
"awesome" plugin, lol. Wash your code.
PR to fix: https://github.com/jschr/textillate/pull/57