diff options
| author | Igor Minar | 2013-10-03 16:24:24 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-10-03 22:19:46 -0700 |
| commit | fe2145016cb057c92f9f01b32c58b4d7259eb6ee (patch) | |
| tree | 3842d3b8da43352d5d0c10e52f7ae70ec4720645 /src/ng/compile.js | |
| parent | a27b4cf5fd81a6cb6b990017dbe77d3090b0e22d (diff) | |
| download | angular.js-fe2145016cb057c92f9f01b32c58b4d7259eb6ee.tar.bz2 | |
fix($compile): don't terminate compilation for regular transclusion directives
Previously we would stop the compilation for both regular and element
transclusion directives which was wrong. Only element transclusion directives
should be terminal.
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 1bc059b3..a4e44f01 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -816,8 +816,9 @@ function $CompileProvider($provide) { if (directiveValue = directive.transclude) { assertNoDuplicate('transclusion', transcludeDirective, directive, $compileNode); transcludeDirective = directive; - terminalPriority = directive.priority; + if (directiveValue == 'element') { + terminalPriority = directive.priority; $template = groupScan(compileNode, attrStart, attrEnd) $compileNode = templateAttrs.$$element = jqLite(document.createComment(' ' + directiveName + ': ' + templateAttrs[directiveName] + ' ')); |
