Skip to content

Instantly share code, notes, and snippets.

View gist:866242
diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js
index 71f775a..9046eff 100644
--- a/ui/jquery.effects.core.js
+++ b/ui/jquery.effects.core.js
@@ -232,9 +232,9 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
return this.queue( 'fx', function() {
var that = $( this ),
- originalStyleAttr = that.attr( 'style' ) || ' ',
+ originalStyleObj = $.extend( {}, that[ 0 ].style ),