diff options
| author | Igor Minar | 2013-02-23 22:54:35 -0800 |
|---|---|---|
| committer | Igor Minar | 2013-02-23 23:40:03 -0800 |
| commit | 4759aacba96f2503b1c3d67ce4c5c915f109337b (patch) | |
| tree | 34611d482ba564fe7ebb06309c37e1b801f42d38 /src | |
| parent | 802bfc259c95838aa3edcdfe33d02a1085910f14 (diff) | |
| download | angular.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.js | 2 |
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); |
