* 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)
| 10849 | * @returns true if directive was registered as multi-element. |
| 10850 | */ |
| 10851 | function directiveIsMultiElement(name) { |
| 10852 | if (hasDirectives.hasOwnProperty(name)) { |
| 10853 | for (var directive, directives = $injector.get(name + Suffix), |
| 10854 | i = 0, ii = directives.length; i < ii; i++) { |
| 10855 | directive = directives[i]; |
| 10856 | if (directive.multiElement) { |
| 10857 | return true; |
| 10858 | } |
| 10859 | } |
| 10860 | } |
| 10861 | return false; |
| 10862 | } |
| 10863 | |
| 10864 | /** |
| 10865 | * When the element is replaced with HTML template then the new attributes |