8000
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 c8a168b commit 6731444Copy full SHA for 6731444
src/utils.js
@@ -247,8 +247,13 @@ var utils = module.exports = {
247
/**
248
* used to defer batch updates
249
*/
250
- nextTick: function (cb) {
251
- defer(cb, 0)
+ nextTick: function (cb, context) {
+ if (context) {
252
+ defer(utils.bind(cb, context), 0)
253
+ }
254
+ else {
255
+ defer(cb, 0)
256
257
},
258
259
@@ -310,7 +315,7 @@ function enableDebug () {
310
315
console.log(msg)
311
316
}
312
317
313
-
318
+
314
319
320
* warnings, traces by default
321
* can be suppressed by `silent` option.
0 commit comments