From 2a2bf8d213b9f6c79ad2601ccfc9ce9d8f1a646d Mon Sep 17 00:00:00 2001 From: Jabran Rafique Date: Mon, 4 Jul 2016 14:27:39 +0100 Subject: [PATCH] Fixing the wrong removal --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee5ee8b..a7b64ff 100644 --- a/README.md +++ b/README.md @@ -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); }); } });