Fixing the wrong removal

This commit is contained in:
Jabran Rafique 2016-07-04 14:27:39 +01:00 committed by GitHub
parent b529d3ae59
commit 2a2bf8d213
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ $.fn.extend({
animateCss: function (animationName) {
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
this.addClass('animated ' + animationName).one(animationEnd, function() {
this.removeClass('animated ' + animationName);
$(this).removeClass('animated ' + animationName);
});
}
});