Fixed a bug with append and Prototype 1.5 (via Audun).
This commit is contained in:
parent
f0034d64e3
commit
c206df28db
4
jquery/jquery.js
vendored
4
jquery/jquery.js
vendored
|
@ -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 );
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue