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

Function invokeFirstDriver

lib/test/angular/1.4.3/angular-animate.js:2903–2916  ·  view source on GitHub ↗
(animationDetails)

Source from the content-addressed store, hash-verified

2901 }
2902
2903 function invokeFirstDriver(animationDetails) {
2904 // we loop in reverse order since the more general drivers (like CSS and JS)
2905 // may attempt more elements, but custom drivers are more particular
2906 for (var i = drivers.length - 1; i >= 0; i--) {
2907 var driverName = drivers[i];
2908 if (!$injector.has(driverName)) continue; // TODO(matsko): remove this check
2909
2910 var factory = $injector.get(driverName);
2911 var driver = factory(animationDetails);
2912 if (driver) {
2913 return driver;
2914 }
2915 }
2916 }
2917
2918 function beforeStart() {
2919 element.addClass(NG_ANIMATE_CLASSNAME);

Callers 1

triggerAnimationStartFunction · 0.70

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected