MCPcopy Create free account
hub / github.com/angular-ui/ui-router / cssClassesIntersection

Function cssClassesIntersection

test/angular/1.5/angular-animate.js:3182–3200  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

3180 }
3181
3182 function cssClassesIntersection(a,b) {
3183 a = a.split(' ');
3184 b = b.split(' ');
3185 var matches = [];
3186
3187 for (var i = 0; i < a.length; i++) {
3188 var aa = a[i];
3189 if (aa.substring(0,3) === 'ng-') continue;
3190
3191 for (var j = 0; j < b.length; j++) {
3192 if (aa === b[j]) {
3193 matches.push(aa);
3194 break;
3195 }
3196 }
3197 }
3198
3199 return matches.join(' ');
3200 }
3201
3202 function invokeFirstDriver(animationDetails) {
3203 // we loop in reverse order since the more general drivers (like CSS and JS)

Callers 1

groupAnimationsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected