* 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)
| 8681 | * @returns true if directive was registered as multi-element. |
| 8682 | */ |
| 8683 | function directiveIsMultiElement(name) { |
| 8684 | if (hasDirectives.hasOwnProperty(name)) { |
| 8685 | for (var directive, directives = $injector.get(name + Suffix), |
| 8686 | i = 0, ii = directives.length; i < ii; i++) { |
| 8687 | directive = directives[i]; |
| 8688 | if (directive.multiElement) { |
| 8689 | return true; |
| 8690 | } |
| 8691 | } |
| 8692 | } |
| 8693 | return false; |
| 8694 | } |
| 8695 | |
| 8696 | /** |
| 8697 | * When the element is replaced with HTML template then the new attributes |