From b529d3ae592d758a6eba02e6b59c378b1acca5e3 Mon Sep 17 00:00:00 2001 From: Jabran Rafique Date: Mon, 4 Jul 2016 14:22:42 +0100 Subject: [PATCH] Remove unnecessary jQuery selection --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7d4a4f..ee5ee8b 100644 --- a/README.md +++ b/README.md @@ -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); }); } });