mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(bluebird): setImmediate > MutationObserver
We were somehow falling into a bluebird case where it uses a DOMMutationObserver instead of nextTick. We should probably report this to them.
This commit is contained in:
parent
60fad2822c
commit
7ba1e0c4a6
|
@ -71,8 +71,9 @@ class DatabaseView extends ModelView
|
|||
@_orders = config.orders ? []
|
||||
|
||||
@_count = -1
|
||||
@invalidateCount()
|
||||
@invalidateRetainedRange()
|
||||
process.nextTick =>
|
||||
@invalidateCount()
|
||||
@invalidateRetainedRange()
|
||||
@
|
||||
|
||||
log: ->
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# Swap out Node's native Promise for Bluebird, which allows us to
|
||||
# do fancy things like handle exceptions inside promise blocks
|
||||
global.Promise = require 'bluebird'
|
||||
Promise.setScheduler(global.setImmediate)
|
||||
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
require './window'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# Swap out Node's native Promise for Bluebird, which allows us to
|
||||
# do fancy things like handle exceptions inside promise blocks
|
||||
global.Promise = require 'bluebird'
|
||||
Promise.setScheduler(global.setImmediate)
|
||||
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
require './window'
|
||||
|
|
Loading…
Reference in a new issue