Landing pull request 372. Test for numeric properties was using wrong variable. Fixes #9074.

More Details:
 - https://github.com/jquery/jquery/pull/372
This commit is contained in:
gnarf 2011-05-07 19:18:52 -04:00 committed by timmywil
parent c085563270
commit 31268449b9
2 changed files with 32 additions and 5 deletions

3
src/effects.js vendored
View file

@ -202,7 +202,6 @@ jQuery.fn.extend({
for ( p in prop ) {
e = new jQuery.fx( this, opt, p );
val = prop[p];
if ( rfxtypes.test(val) ) {
@ -214,7 +213,7 @@ jQuery.fn.extend({
if ( parts ) {
end = parseFloat( parts[2] );
unit = parts[3] || ( jQuery.cssNumber[ name ] ? "" : "px" );
unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
// We need to compute starting value
if ( unit !== "px" ) {