Changeset 3299
- Timestamp:
- 09/15/07 02:40:42 (1 year ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/fx.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/fx.js
r3290 r3299 97 97 e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop ); 98 98 else { 99 var parts = val.toString().match(/^([+-] ?)([\d.]+)(.*)$/),99 var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), 100 100 start = e.cur(true) || 0; 101 101 … … 111 111 } 112 112 113 // If a + /-token was provided, we're doing a relative animation113 // If a +=/-= token was provided, we're doing a relative animation 114 114 if ( parts[1] ) 115 end = ((parts[1] == "-" ? -1 : 1) * end) + start; 116 117 // Absolutely position numbers 118 if( typeof val == "number") end = val; 115 end = ((parts[1] == "-=" ? -1 : 1) * end) + start; 119 116 120 117 e.custom( start, end, unit ); … … 135 132 } 136 133 137 if ( !type || typeof type == "string")134 if ( !type || (typeof type == "string" && !fn) ) 138 135 return queue( this[0], type ); 139 136
