Closed floriandiud closed 11 years ago
I guess it's because of "div.firstChild":
$$.fn.append = function(value) {
return this.each(function() {
if ($$.toType(value) === 'string') {
if (value) {
var div = document.createElement();
div.innerHTML = value;
this.appendChild(div.firstChild);
}
} else {
this.insertBefore(value);
}
});
};
Thanks, I'll implement in version 2.3
if you do:
It works well, but with append:
It only appends the first element