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

Function invokeFirstDriver

test/angular/1.6/angular-animate.js:3205–3216  ·  view source on GitHub ↗
(animationDetails)

Source from the content-addressed store, hash-verified

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

Callers 1

angular-animate.jsFile · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected