diff options
| author | Igor Minar | 2012-10-25 00:58:50 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-10-29 19:39:21 -0700 | 
| commit | 9bff5c60df21271bea91620d9ec1bcd1cdb54c56 (patch) | |
| tree | 755ee9634a9a59531b2ed9d7b478aa3504ffa4df /src/ng/compile.js | |
| parent | 3ba008d4b2592f58d3677a43fc701a63c905dfe6 (diff) | |
| download | angular.js-9bff5c60df21271bea91620d9ec1bcd1cdb54c56.tar.bz2 | |
fix($compile): compilation should not recurse into empty nodes
if a node doesn't have children then don't try to compile these non-existent children
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 1ee0fc6f..fd431849 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -380,7 +380,7 @@ function $CompileProvider($provide) {             ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement)             : null; -       childLinkFn = (nodeLinkFn && nodeLinkFn.terminal) +       childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes.length)             ? null             : compileNodes(nodeList[i].childNodes,                  nodeLinkFn ? nodeLinkFn.transclude : transcludeFn); | 
