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

Function cssClassesIntersection

test/angular/1.4/angular-animate.js:3155–3173  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

3153 }
3154
3155 function cssClassesIntersection(a,b) {
3156 a = a.split(' ');
3157 b = b.split(' ');
3158 var matches = [];
3159
3160 for (var i = 0; i < a.length; i++) {
3161 var aa = a[i];
3162 if (aa.substring(0,3) === 'ng-') continue;
3163
3164 for (var j = 0; j < b.length; j++) {
3165 if (aa === b[j]) {
3166 matches.push(aa);
3167 break;
3168 }
3169 }
3170 }
3171
3172 return matches.join(' ');
3173 }
3174
3175 function invokeFirstDriver(animationDetails) {
3176 // 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