diff options
| author | Brian Ford | 2013-10-30 15:02:25 -0700 |
|---|---|---|
| committer | Brian Ford | 2013-10-30 16:21:02 -0700 |
| commit | 5b620653f61ae3d9f1de8346de271752fa12f26f (patch) | |
| tree | c4d8c5b91363fdbf76b143d7f7f67c2f45d3808a /src/ng/compile.js | |
| parent | 6578bd0c82b5cbb0cd6f6fea0787fb7ce820d4e7 (diff) | |
| download | angular.js-5b620653f61ae3d9f1de8346de271752fa12f26f.tar.bz2 | |
chore($compile): remove special case for ngIf and ngRepeat
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index af7d5e6b..d3ade6b8 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1173,9 +1173,10 @@ function $CompileProvider($provide) { } if (directiveValue = directive.transclude) { - // Special case ngRepeat so that we don't complain about duplicate transclusion, ngRepeat - // knows how to handle this on its own. - if (directiveName !== 'ngRepeat' && directiveName !== 'ngIf') { + // Special case ngIf and ngRepeat so that we don't complain about duplicate transclusion. + // This option should only be used by directives that know how to how to safely handle element transclusion, + // where the transcluded nodes are added or replaced after linking. + if (!directive.$$tlb) { assertNoDuplicate('transclusion', transcludeDirective, directive, $compileNode); transcludeDirective = directive; } |
