For the first time in too many months (blush), I upgraded my jQuery stuff. I\'m now on:
In case this helps someone stumbling upon this question like I did when I got this error, I'll add another possible solution. My error was due to the fact that my 2nd argument to the fadeIn
function was not a "callback" function to be executed on completion of the animation. If the 2nd argument is not a function, jQuery expects it to be a type of easing to use. My 2nd argument was mistakenly an object - I thought it was a function.
So, for me,
return {
enter: function(element,classes,done){ //classes variable incorrectly added, making done an object
element.fadeIn(1000,done);
}
};
became:
return {
enter: function(element,done){ //remove classes variable as wasn't right for this situation - done is now a function
element.fadeIn(1000,done);
}
};
Note, the change in arguments passed into my anonymous enter
function. Importantly in my case, these variables were AngularJS injections, so the order they were in was important, not so much their name.