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