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

Function cssClassesIntersection

lib/test/angular/1.5.0/angular-animate.js:3146–3164  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

3144 }
3145
3146 function cssClassesIntersection(a,b) {
3147 a = a.split(' ');
3148 b = b.split(' ');
3149 var matches = [];
3150
3151 for (var i = 0; i < a.length; i++) {
3152 var aa = a[i];
3153 if (aa.substring(0,3) === 'ng-') continue;
3154
3155 for (var j = 0; j < b.length; j++) {
3156 if (aa === b[j]) {
3157 matches.push(aa);
3158 break;
3159 }
3160 }
3161 }
3162
3163 return matches.join(' ');
3164 }
3165
3166 function invokeFirstDriver(animationDetails) {
3167 // 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