diff options
| author | Igor Minar | 2013-02-23 22:54:35 -0800 |
|---|---|---|
| committer | Igor Minar | 2013-02-23 23:22:14 -0800 |
| commit | bec614fd90c48c3921a4b659912008574e553b40 (patch) | |
| tree | 8bedf2592843b868d942590f93983d88de6fd1cc /src/ng/compile.js | |
| parent | 509ec745fdbb54b54672fbf8595a4958c16f2b53 (diff) | |
| download | angular.js-bec614fd90c48c3921a4b659912008574e553b40.tar.bz2 | |
fix($compile): handle elements with no childNodes property
see the test for more details
Diffstat (limited to 'src/ng/compile.js')
| -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 11a86f3f..113bacc5 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); |
