aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jqLite.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index b169d1b5..e1231b61 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -715,12 +715,7 @@ forEach({
if (element.nodeType === 1) {
var index = element.firstChild;
forEach(new JQLite(node), function(child){
- if (index) {
- element.insertBefore(child, index);
- } else {
- element.appendChild(child);
- index = child;
- }
+ element.insertBefore(child, index);
});
}
},