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

Function directiveIsMultiElement

lib/test/angular/1.5.0/angular.js:9084–9095  ·  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

9082 * @returns true if directive was registered as multi-element.
9083 */
9084 function directiveIsMultiElement(name) {
9085 if (hasDirectives.hasOwnProperty(name)) {
9086 for (var directive, directives = $injector.get(name + Suffix),
9087 i = 0, ii = directives.length; i < ii; i++) {
9088 directive = directives[i];
9089 if (directive.multiElement) {
9090 return true;
9091 }
9092 }
9093 }
9094 return false;
9095 }
9096
9097 /**
9098 * 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