mirror of
https://github.com/maputnik/editor.git
synced 2026-08-27 07:27:33 +00:00
Switch to setTimeout(fn, 0)
This commit is contained in:
@@ -46,10 +46,10 @@ 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() {
|
setTimeout(function() {
|
||||||
// For the DOM to be updated.
|
// For the DOM to be updated.
|
||||||
setImmediate(done);
|
setTimeout(done, 0);
|
||||||
})
|
}, 0)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user