Remove unnecessary jQuery selection

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

View File

@ -156,8 +156,8 @@ You can also extend jQuery to add a function that does it all for you:
$.fn.extend({
animateCss: function (animationName) {
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
$(this).addClass('animated ' + animationName).one(animationEnd, function() {
$(this).removeClass('animated ' + animationName);
this.addClass('animated ' + animationName).one(animationEnd, function() {
this.removeClass('animated ' + animationName);
});
}
});