aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorJoao Sa2013-06-28 00:53:17 -0300
committerIgor Minar2013-07-02 23:24:51 -0700
commitfd87eb0ca5e14f213d8b31280d444dbc29c20c50 (patch)
tree6fdf7198d1cfe8b0955ad217b6f9b4dc0bcd4f3e /src/jqLite.js
parent3ffddad100e993403d13137387d0685466b46b2b (diff)
downloadangular.js-fd87eb0ca5e14f213d8b31280d444dbc29c20c50.tar.bz2
fix(jqLite): prepend array in correct order
Match jQuery behavior when prepending array into empty element
Diffstat (limited to 'src/jqLite.js')
-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);
});
}
},