* 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)
| 10260 | * @returns true if directive was registered as multi-element. |
| 10261 | */ |
| 10262 | function directiveIsMultiElement(name) { |
| 10263 | if (hasDirectives.hasOwnProperty(name)) { |
| 10264 | for (var directive, directives = $injector.get(name + Suffix), |
| 10265 | i = 0, ii = directives.length; i < ii; i++) { |
| 10266 | directive = directives[i]; |
| 10267 | if (directive.multiElement) { |
| 10268 | return true; |
| 10269 | } |
| 10270 | } |
| 10271 | } |
| 10272 | return false; |
| 10273 | } |
| 10274 | |
| 10275 | /** |
| 10276 | * When the element is replaced with HTML template then the new attributes |