mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Remove deferred browser process requires
This commit is contained in:
@@ -273,9 +273,8 @@ class AtomApplication
|
||||
ipc.on 'cancel-window-close', =>
|
||||
@quitting = false
|
||||
|
||||
clipboard = null
|
||||
clipboard = require '../safe-clipboard'
|
||||
ipc.on 'write-text-to-selection-clipboard', (event, selectedText) ->
|
||||
clipboard ?= require '../safe-clipboard'
|
||||
clipboard.writeText(selectedText, 'selection')
|
||||
|
||||
# Public: Executes the given command.
|
||||
|
||||
@@ -93,10 +93,9 @@ class AtomWindow
|
||||
hasProjectPath: -> @getLoadSettings().initialPaths?.length > 0
|
||||
|
||||
setupContextMenu: ->
|
||||
ContextMenu = null
|
||||
ContextMenu = require './context-menu'
|
||||
|
||||
@browserWindow.on 'context-menu', (menuTemplate) =>
|
||||
ContextMenu ?= require './context-menu'
|
||||
new ContextMenu(menuTemplate, this)
|
||||
|
||||
containsPaths: (paths) ->
|
||||
|
||||
Reference in New Issue
Block a user