aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorIgor Minar2011-03-31 01:19:07 -0700
committerIgor Minar2011-03-31 01:19:07 -0700
commita2c42711281d6ec61b73190b47743f79143c5bb1 (patch)
treedd1e463c9208b4d76a175141d684574d4bde144b /src/jqLite.js
parent56c00800c78d3d896fa6cb97ab97b974805152c4 (diff)
downloadangular.js-a2c42711281d6ec61b73190b47743f79143c5bb1.tar.bz2
ignore jqLite#append for doc fragment
this is needed to be compatible with jqQuery 1.5.1
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 d16ce19e..6539aaab 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -342,7 +342,8 @@ forEach({
append: function(element, node) {
forEach(new JQLite(node), function(child){
- element.appendChild(child);
+ if (element.nodeType === 1)
+ element.appendChild(child);
});
},