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

Function invokeFirstDriver

test/angular/1.5/angular-animate.js:3202–3213  ·  view source on GitHub ↗
(animationDetails)

Source from the content-addressed store, hash-verified

3200 }
3201
3202 function invokeFirstDriver(animationDetails) {
3203 // we loop in reverse order since the more general drivers (like CSS and JS)
3204 // may attempt more elements, but custom drivers are more particular
3205 for (var i = drivers.length - 1; i >= 0; i--) {
3206 var driverName = drivers[i];
3207 var factory = $injector.get(driverName);
3208 var driver = factory(animationDetails);
3209 if (driver) {
3210 return driver;
3211 }
3212 }
3213 }
3214
3215 function beforeStart() {
3216 element.addClass(NG_ANIMATE_CLASSNAME);

Callers 1

angular-animate.jsFile · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected