MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / directiveIsMultiElement

Function directiveIsMultiElement

lib/test/angular/1.7.0/angular.js:10268–10279  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

10266 * @returns true if directive was registered as multi-element.
10267 */
10268 function directiveIsMultiElement(name) {
10269 if (hasDirectives.hasOwnProperty(name)) {
10270 for (var directive, directives = $injector.get(name + Suffix),
10271 i = 0, ii = directives.length; i < ii; i++) {
10272 directive = directives[i];
10273 if (directive.multiElement) {
10274 return true;
10275 }
10276 }
10277 }
10278 return false;
10279 }
10280
10281 /**
10282 * When the element is replaced with HTML template then the new attributes

Callers 1

collectDirectivesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected