We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f91c14 commit 37cc961Copy full SHA for 37cc961
test/viewDirectiveSpec.ts
@@ -7,8 +7,11 @@ declare let inject, jasmine;
7
let module = angular.mock.module;
8
9
function animateFlush($animate) {
10
- $animate && $animate.triggerCallbacks && $animate.triggerCallbacks(); // 1.2-1.3
11
- $animate && $animate.flush && $animate.flush(); // 1.4
+ if ($animate && $animate.flush) {
+ $animate.flush(); // 1.4
12
+ } else if ($animate && $animate.triggerCallbacks) {
13
+ $animate.triggerCallbacks(); // 1.2-1.3
14
+ }
15
}
16
17
describe('uiView', function () {
0 commit comments