Sha256: 1af12aa1d693cd00b2af39b325c53ffadad7f136f9be9340b6a3a01f2faeb4fc
Contents?: true
Size: 697 Bytes
Versions: 19
Compression:
Stored size: 697 Bytes
Contents
(function() { var $; $ = jQuery; $.fn.extend({ afterAnimation: function(fn) { return $(this).bind('oanimationend animationend webkitAnimationEnd otransitionend transitionend webkitTransitionEnd', fn); }, afterTransitionForAddingClass: function(className, fn) { if (!$(this).hasClass('active')) { return $(this).toggleClass('active', true).afterAnimation(fn); } else { return fn(); } }, afterTransitionForRemovingClass: function(className, fn) { if ($(this).hasClass('active')) { return $(this).toggleClass('active', false).afterAnimation(fn); } else { return fn(); } } }); }).call(this);
Version data entries
19 entries across 19 versions & 1 rubygems