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 eb11139 commit a5f074fCopy full SHA for a5f074f
src/utils.js
@@ -5,13 +5,10 @@ var config = require('./config'),
5
console = window.console,
6
ViewModel // late def
7
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)
+var defer =
+ window.requestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ window.setTimeout
15
16
/**
17
* Create a prototype-less object
0 commit comments