I have this sniplet of code in jQuery
$element.parent().children().last().hide().show(\'slide\', {direction : \'left\'}, 700, function () {
$element.delay(20
Just for reference if someone stumbles upon this question and is looking for a possible answer. I got the exact same error message as the initial poster because I was mixing up the setTimeout
arguments order.
This:
setTimeout(25, function(){
spotlight.intro.find('#intro').ellipsis();
});
... gave me the error message. I changed the function to this:
setTimeout(function(){
spotlight.intro.find('#intro').ellipsis();
}, 25);
And my problem was solved.