Fixed a bug with append and Prototype 1.5 (via Audun).

1.7/enhancement_8685
John Resig 2006-03-23 22:29:02 +00:00
parent f0034d64e3
commit c206df28db
1 changed files with 2 additions and 2 deletions

4
jquery/jquery.js vendored
View File

@ -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 );
});
},