}
// If a +/- token was provided, we're doing a relative animation
- if ( parts[1] && typeof val != "number" )
+ if ( parts[1] )
end = ((parts[1] == "-" ? -1 : 1) * end) + start;
+ // Absolutely position numbers
+ if( typeof val == "number") end = val;
+
e.custom( start, end, unit );
} else
e.custom( start, val, "" );
},
queue: function(type, fn){
- if ( !fn ) {
+ if ( jQuery.isFunction(type) ) {
fn = type;
type = "fx";
}
- if ( !arguments.length )
+ if ( !type || typeof type == "string" )
return queue( this[0], type );
return this.each(function(){