* 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)
| 7874 | * @returns true if directive was registered as multi-element. |
| 7875 | */ |
| 7876 | function directiveIsMultiElement(name) { |
| 7877 | if (hasDirectives.hasOwnProperty(name)) { |
| 7878 | for (var directive, directives = $injector.get(name + Suffix), |
| 7879 | i = 0, ii = directives.length; i < ii; i++) { |
| 7880 | directive = directives[i]; |
| 7881 | if (directive.multiElement) { |
| 7882 | return true; |
| 7883 | } |
| 7884 | } |
| 7885 | } |
| 7886 | return false; |
| 7887 | } |
| 7888 | |
| 7889 | /** |
| 7890 | * When the element is replaced with HTML template then the new attributes |