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
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;
jQuery.setAuto( z.el, prop );
// If a callback was provided, execute it
- if( z.o.complete.constructor == Function ) {
+ if( z.o.complete && z.o.complete.constructor == Function ) {
// Yes, this is a weird place for this, but it needs to be executed
// only once per cluster of effects.