see mailnglist
authorGilles van den Hoven <gilles0181@gmail.com>
Sat, 24 Jun 2006 14:10:12 +0000 (14:10 +0000)
committerGilles van den Hoven <gilles0181@gmail.com>
Sat, 24 Jun 2006 14:10:12 +0000 (14:10 +0000)
fx/fx.js

index bab2074..34c0e26 100644 (file)
--- a/fx/fx.js
+++ b/fx/fx.js
@@ -84,7 +84,7 @@ jQuery.prototype.animate = function(prop,speed,callback) {
        return this.queue(function(){
                var i = 0;
                for ( var p in prop ) {
-                       var e = new fx( this, jQuery.speed(speed,callback,i++), p );
+                       var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p );
                        if ( prop[p].constructor == Number )
                                e.custom( e.cur(), prop[p] );
                        else
@@ -100,7 +100,7 @@ jQuery.speed = function(s,o,i) {
                o = { complete: o };
        
        var ss = {"slow":600,"fast":200};
-       o.duration = s.constructor == Number ? s : ss[s] || 400;
+       o.duration = (s && s.constructor == Number ? s : ss[s]) || 400;
 
        // Queueing
        o.oldComplete = o.complete;