aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2013-02-23 22:54:35 -0800
committerIgor Minar2013-02-23 23:40:03 -0800
commit4759aacba96f2503b1c3d67ce4c5c915f109337b (patch)
tree34611d482ba564fe7ebb06309c37e1b801f42d38 /src
parent802bfc259c95838aa3edcdfe33d02a1085910f14 (diff)
downloadangular.js-4759aacba96f2503b1c3d67ce4c5c915f109337b.tar.bz2
fix($compile): handle elements with no childNodes property
see the test for more details
Diffstat (limited to 'src')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 84a9c3ca..78df5aa8 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -433,7 +433,7 @@ function $CompileProvider($provide) {
? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement)
: null;
- childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes.length)
+ childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes || !nodeList[i].childNodes.length)
? null
: compileNodes(nodeList[i].childNodes,
nodeLinkFn ? nodeLinkFn.transclude : transcludeFn);