mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use process.nextTick instead of MessageChannel
This commit is contained in:
@@ -1185,7 +1185,7 @@ class Editor extends View
|
||||
return if @pendingDisplayUpdate
|
||||
return unless @isVisible()
|
||||
@pendingDisplayUpdate = true
|
||||
_.nextTick =>
|
||||
process.nextTick =>
|
||||
@updateDisplay()
|
||||
@pendingDisplayUpdate = false
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ class RootView extends View
|
||||
@panes.reopenItem()
|
||||
|
||||
if @state.get('fullScreen')
|
||||
_.nextTick => atom.setFullScreen(true)
|
||||
process.nextTick => atom.setFullScreen(true)
|
||||
|
||||
# Private:
|
||||
serialize: ->
|
||||
|
||||
@@ -13,7 +13,7 @@ windowEventHandler = null
|
||||
# This is done in a next tick to prevent a white flicker from occurring
|
||||
# if called synchronously.
|
||||
displayWindow = ->
|
||||
_.nextTick ->
|
||||
process.nextTick ->
|
||||
atom.show()
|
||||
atom.focus()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user