Skip to content

Commit 2a2bf8d

Browse files
authored
Fixing the wrong removal
1 parent b529d3a commit 2a2bf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $.fn.extend({
157157
animateCss: function (animationName) {
158158
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
159159
this.addClass('animated ' + animationName).one(animationEnd, function() {
160-
this.removeClass('animated ' + animationName);
160+
$(this).removeClass('animated ' + animationName);
161161
});
162162
}
163163
});

0 commit comments

Comments
 (0)