Attempted to fix #6227, not entirely sure if it's a problem as I'm having a hard time reproducing it. Regardless, the change is harmless and potentially even speeds up appendTo, etc. slightly.

This commit is contained in:
jeresig 2010-03-05 00:07:57 -05:00
parent 9584e908a2
commit 2c08004f6d
2 changed files with 10 additions and 2 deletions

View file

@ -442,7 +442,7 @@ jQuery.each({
} else {
for ( var i = 0, l = insert.length; i < l; i++ ) {
var elems = (i > 0 ? this.clone(true) : this).get();
jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
jQuery.fn[ original ].call( jQuery(insert[i]), elems );
ret = ret.concat( elems );
}