Fixed #1039 and #1733 by going through the core API and making them text node and comment node safe.

This commit is contained in:
David Serduke 2007-12-07 01:52:21 +00:00
parent 12ef255ffd
commit ffbedf0262
8 changed files with 188 additions and 64 deletions

View file

@ -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 {