Bug Tracker

Changeset 3303

Show
Ignore:
Timestamp:
09/15/07 03:26:33 (1 year ago)
Author:
jeresig
Message:

Fixed animating to 0% (Bug #1586).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/fx.js

    r3302 r3303  
    106106                        // We need to compute starting value 
    107107                        if ( unit != "px" ) { 
    108                             self.style[ name ] = end + unit; 
    109                             start = (end / e.cur(true)) * start; 
     108                            self.style[ name ] = (end || 1) + unit; 
     109                            start = ((end || 1) / e.cur(true)) * start; 
    110110                            self.style[ name ] = start + unit; 
    111111                        }