mirror of
https://github.com/maputnik/editor.git
synced 2026-01-06 21:40:01 +00:00
setImmediate -> process.nextTick
This commit is contained in:
@@ -46,9 +46,9 @@ try {
|
|||||||
browser.addCommand('flushReactUpdates', function() {
|
browser.addCommand('flushReactUpdates', function() {
|
||||||
browser.executeAsync(function(done) {
|
browser.executeAsync(function(done) {
|
||||||
// For any events to propogate
|
// For any events to propogate
|
||||||
setImmediate(function() {
|
process.nextTick(function() {
|
||||||
// For the DOM to be updated.
|
// For the DOM to be updated.
|
||||||
setImmediate(done);
|
process.nextTick(done);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user