* looks up the directive and returns true if it is a multi-element directive, * and therefore requires DOM nodes between -start and -end markers to be grouped * together. * * @param {string} name name of the directive to look up. * @returns true if directive was registered a
(name)
| 10189 | * @returns true if directive was registered as multi-element. |
| 10190 | */ |
| 10191 | function directiveIsMultiElement(name) { |
| 10192 | if (hasDirectives.hasOwnProperty(name)) { |
| 10193 | for (var directive, directives = $injector.get(name + Suffix), |
| 10194 | i = 0, ii = directives.length; i < ii; i++) { |
| 10195 | directive = directives[i]; |
| 10196 | if (directive.multiElement) { |
| 10197 | return true; |
| 10198 | } |
| 10199 | } |
| 10200 | } |
| 10201 | return false; |
| 10202 | } |
| 10203 | |
| 10204 | /** |
| 10205 | * When the element is replaced with HTML template then the new attributes |