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

Function lookupAnimations

lib/test/angular/1.4.3/angular-animate.js:1792–1804  ·  view source on GitHub ↗
(classes)

Source from the content-addressed store, hash-verified

1790 };
1791
1792 function lookupAnimations(classes) {
1793 classes = isArray(classes) ? classes : classes.split(' ');
1794 var matches = [], flagMap = {};
1795 for (var i=0; i < classes.length; i++) {
1796 var klass = classes[i],
1797 animationFactory = $animateProvider.$$registeredAnimations[klass];
1798 if (animationFactory && !flagMap[klass]) {
1799 matches.push($injector.get(animationFactory));
1800 flagMap[klass] = true;
1801 }
1802 }
1803 return matches;
1804 }
1805 }];
1806}];
1807

Callers 1

angular-animate.jsFile · 0.70

Calls 1

isArrayFunction · 0.50

Tested by

no test coverage detected