MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / invokeFirstDriver

Function invokeFirstDriver

lib/test/angular/1.5.0/angular-animate.js:3166–3179  ·  view source on GitHub ↗
(animationDetails)

Source from the content-addressed store, hash-verified

3164 }
3165
3166 function invokeFirstDriver(animationDetails) {
3167 // we loop in reverse order since the more general drivers (like CSS and JS)
3168 // may attempt more elements, but custom drivers are more particular
3169 for (var i = drivers.length - 1; i >= 0; i--) {
3170 var driverName = drivers[i];
3171 if (!$injector.has(driverName)) continue; // TODO(matsko): remove this check
3172
3173 var factory = $injector.get(driverName);
3174 var driver = factory(animationDetails);
3175 if (driver) {
3176 return driver;
3177 }
3178 }
3179 }
3180
3181 function beforeStart() {
3182 element.addClass(NG_ANIMATE_CLASSNAME);

Callers 1

angular-animate.jsFile · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected