X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ffx.js;h=67af1305db7f2952b95e284e4893df4ff409dced;hb=62d84e44ac3b4a3673c320514bbf5ac8dc7712d6;hp=1028610e28494aa2ed8c077e6416ced78220dc12;hpb=a36771c83e8a8317b70ff2372cbbefd87e4d9dce;p=jquery.git diff --git a/src/fx.js b/src/fx.js index 1028610..67af130 100644 --- a/src/fx.js +++ b/src/fx.js @@ -114,6 +114,9 @@ jQuery.fn.extend({ 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, "" ); @@ -126,12 +129,12 @@ jQuery.fn.extend({ }, 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(){