aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-05-07 19:18:52 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-07 19:18:52 -0400
commit31268449b9255b21fad4bafd7da13c910a00af37 (patch)
tree89b75bd2b1e358a932b0cf6aa2b5bc1de4a24bc2 /src/effects.js
parentc08556327032daa21493f2b3a77f2138352fadf8 (diff)
downloadjquery-31268449b9255b21fad4bafd7da13c910a00af37.tar.gz
jquery-31268449b9255b21fad4bafd7da13c910a00af37.zip
Landing pull request 372. Test for numeric properties was using wrong variable. Fixes #9074.
More Details: - https://github.com/jquery/jquery/pull/372
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js
index 832ef5da0..7023461b3 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -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" ) {