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:
Ben Gotow 2015-12-11 11:56:22 -08:00
parent 60fad2822c
commit 7ba1e0c4a6
3 changed files with 5 additions and 2 deletions

View file

@ -71,8 +71,9 @@ class DatabaseView extends ModelView
@_orders = config.orders ? []
@_count = -1
@invalidateCount()
@invalidateRetainedRange()
process.nextTick =>
@invalidateCount()
@invalidateRetainedRange()
@
log: ->

View file

@ -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'

View file

@ -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'