aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorIgor Minar2012-11-24 01:34:01 +0100
committerIgor Minar2012-11-26 15:45:04 +0100
commit96ed9ff59a454486c88bdf92ad9d28ab8864b85e (patch)
treeac5ffeb929d1a2f4f0d08d6f7a1f60f44c405097 /src/jqLite.js
parentb9a9f91fbf99b71cfde434b6277f4c7d2533556f (diff)
downloadangular.js-96ed9ff59a454486c88bdf92ad9d28ab8864b85e.tar.bz2
fix(jqLite): support append on document fragment
previously jquery didn't support append on this node type, now it does (since 1.8.x) so I'm adding this to jqlite as well.
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 26be5977..38bf9437 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -659,8 +659,9 @@ forEach({
append: function(element, node) {
forEach(new JQLite(node), function(child){
- if (element.nodeType === 1)
+ if (element.nodeType === 1 || element.nodeType === 11) {
element.appendChild(child);
+ }
});
},