Skip to content

Commit

Permalink
adjust nextTick fallback order - fix karma:safari unit test not passing
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 14, 2014
1 parent eb11139 commit a5f074f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ var config = require('./config'),
console = window.console,
ViewModel // late def

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

/**
* Create a prototype-less object
Expand Down

0 comments on commit a5f074f

Please sign in to comment.