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

This commit is contained in:
John Resig 2006-03-23 22:29:02 +00:00
parent f0034d64e3
commit c206df28db

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