Skip to content
Browse files

fixed a bug in the animation of multivalue functions

  • Loading branch information...
1 parent 05434da commit 137375648dbaec61fcec7f27abb8725321a15471 @heygrady committed May 16, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/jquery.transform.js
View
6 lib/jquery.transform.js
@@ -114,7 +114,7 @@
// sure $.fn.animate() won't think there's units an ruin
// our fun.
if (prop && !jQuery.isEmptyObject(prop)) {
- var elem = this[0];
+ var $elem = this;
jQuery.each( prop, function( name, val ) {
// Clean up the numbers for space-sperated prop values
if ($.inArray(transformFuncs, name)) {
@@ -145,8 +145,8 @@
i++;
}
- // Save the values and truncate the property
- elem['data-animate-' + name] = values;
+ // Save the values and truncate the value to make it safe to animate
+ $elem.each(function(){this['data-animate-' + name] = values;});
prop[name] = values[0].end;
}
}

0 comments on commit 1373756

Please sign in to comment.
Something went wrong with that request. Please try again.