mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 17:13:45 +03:00
Use process.nextTick instead of MessageChannel
This commit is contained in:
parent
216a5e61fd
commit
5b6e8a1b20
@ -1,8 +1,12 @@
|
||||
{View, $$, $$$} = require '../src/space-pen-extensions'
|
||||
{Document, Point, Range, Site} = require 'telepath'
|
||||
|
||||
_ = require 'underscore-plus'
|
||||
#TODO Remove once all packages have been updated
|
||||
_.nextTick = process.nextTick
|
||||
|
||||
module.exports =
|
||||
_: require 'underscore-plus'
|
||||
_: _
|
||||
$: require '../src/jquery-extensions'
|
||||
$$: $$
|
||||
$$$: $$$
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user