From: John Resig Date: Thu, 23 Mar 2006 22:29:02 +0000 (+0000) Subject: Fixed a bug with append and Prototype 1.5 (via Audun). X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=c206df28db1d8e6ff7d276ea3d92cde35e0cc640;p=jquery.git Fixed a bug with append and Prototype 1.5 (via Audun). --- diff --git a/jquery/jquery.js b/jquery/jquery.js index 563fc29..48082c7 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -141,7 +141,7 @@ function $(a,c) { var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ - for ( var i in a ) + for ( var i = 0; i < a.length; i++ ) this.appendChild( clone ? a[i].cloneNode(true) : a[i] ); }); }, @@ -167,7 +167,7 @@ function $(a,c) { var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ - for ( var i in a ) + for ( var i = 0; i < a.length; i++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); }); },