File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -229,11 +229,11 @@ module.exports = {
229
229
if ( this . queued ) return
230
230
this . queued = true
231
231
var self = this
232
- setTimeout ( function ( ) {
232
+ utils . nextTick ( function ( ) {
233
233
if ( ! self . compiler ) return
234
234
self . compiler . parseDeps ( )
235
235
self . queued = false
236
- } , 0 )
236
+ } )
237
237
} ,
238
238
239
239
/**
Original file line number Diff line number Diff line change @@ -4,15 +4,10 @@ var config = require('./config'),
4
4
join = [ ] . join ,
5
5
win = window ,
6
6
console = win . console ,
7
-
7
+ timeout = win . setTimeout ,
8
8
hasClassList = 'classList' in document . documentElement ,
9
9
ViewModel // late def
10
10
11
- var defer =
12
- win . requestAnimationFrame ||
13
- win . webkitRequestAnimationFrame ||
14
- win . setTimeout
15
-
16
11
var utils = module . exports = {
17
12
18
13
/**
@@ -195,7 +190,7 @@ var utils = module.exports = {
195
190
* used to defer batch updates
196
191
*/
197
192
nextTick : function ( cb ) {
198
- defer ( cb , 0 )
193
+ timeout ( cb , 0 )
199
194
} ,
200
195
201
196
/**
You can’t perform that action at this time.
0 commit comments