X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx.js;h=52225c8a4d6bbac42b068c6c85bc15f8000aaa93;hb=91f1299f68a68728467a2566a38845d82e30606f;hp=b35dbcd8d736c49ce8f20f4e44b32dba2ec31c15;hpb=5039a4bc5b951b9d28659f6f42f73c59e2e560fc;p=jquery.git diff --git a/src/fx.js b/src/fx.js index b35dbcd..52225c8 100644 --- a/src/fx.js +++ b/src/fx.js @@ -69,6 +69,9 @@ jQuery.fn.extend({ var optall = jQuery.speed(speed, easing, callback); return this[ optall.queue === false ? "each" : "queue" ](function(){ + if ( this.nodeType != 1) + return false; + var opt = jQuery.extend({}, optall); var hidden = jQuery(this).is(":hidden"), self = this; @@ -135,6 +138,9 @@ jQuery.fn.extend({ return queue( this[0], type ); return this.each(function(){ + if ( this.nodeType != 1) + return; + if ( fn.constructor == Array ) queue(this, type, fn); else {