Move remaining workspace commands back to $::command temporarily

This commit is contained in:
Nathan Sobo
2014-10-06 13:19:47 -06:00
parent b00441bee7
commit 34bd103c3d
2 changed files with 29 additions and 23 deletions

View File

@@ -107,6 +107,9 @@ class WorkspaceElement extends HTMLElement
'core:save-as': -> @getModel().saveActivePaneItemAs()
)
if process.platform is 'darwin'
addCommands 'window:install-shell-commands': -> @getModel().installShellCommands()
getModel: -> @model
setModel: (@model) ->
@@ -135,9 +138,6 @@ class WorkspaceElement extends HTMLElement
handleWindowFocus: (event) ->
@handleFocus(event) if document.activeElement is document.body
if process.platform is 'darwin'
atom.commands.add '.workspace', 'window:install-shell-commands', -> @getModel().installShellCommands()
module.exports = WorkspaceElement = document.registerElement 'atom-workspace',
prototype: WorkspaceElement.prototype
extends: 'div'