* 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)
| 9740 | * @returns true if directive was registered as multi-element. |
| 9741 | */ |
| 9742 | function directiveIsMultiElement(name) { |
| 9743 | if (hasDirectives.hasOwnProperty(name)) { |
| 9744 | for (var directive, directives = $injector.get(name + Suffix), |
| 9745 | i = 0, ii = directives.length; i < ii; i++) { |
| 9746 | directive = directives[i]; |
| 9747 | if (directive.multiElement) { |
| 9748 | return true; |
| 9749 | } |
| 9750 | } |
| 9751 | } |
| 9752 | return false; |
| 9753 | } |
| 9754 | |
| 9755 | /** |
| 9756 | * When the element is replaced with HTML template then the new attributes |