From c206df28db1d8e6ff7d276ea3d92cde35e0cc640 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 23 Mar 2006 22:29:02 +0000 Subject: [PATCH] Fixed a bug with append and Prototype 1.5 (via Audun). --- jquery/jquery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }); }, -- 1.7.10.4