Skip to content

Commit a5f074f

Browse files
committed
adjust nextTick fallback order - fix karma:safari unit test not passing
1 parent eb11139 commit a5f074f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/utils.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ var config = require('./config'),
55
console = window.console,
66
ViewModel // late def
77

8-
// PhantomJS doesn't support rAF, yet it has the global
9-
// variable exposed. Use setTimeout so tests can work.
10-
var defer = navigator.userAgent.indexOf('PhantomJS') > -1
11-
? window.setTimeout
12-
: (window.webkitRequestAnimationFrame ||
13-
window.requestAnimationFrame ||
14-
window.setTimeout)
8+
var defer =
9+
window.requestAnimationFrame ||
10+
window.webkitRequestAnimationFrame ||
11+
window.setTimeout
1512

1613
/**
1714
* Create a prototype-less object

0 commit comments

Comments
 (0)