mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Remove unneeded param defaults from activate methods
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports =
|
||||
commandLoggerView: null
|
||||
originalTrigger: null
|
||||
|
||||
activate: (state={})->
|
||||
activate: (state) ->
|
||||
@eventLog = state.eventLog ? {}
|
||||
rootView.command 'command-logger:clear-data', => @eventLog = {}
|
||||
rootView.command 'command-logger:toggle', => @createView().toggle(@eventLog)
|
||||
|
||||
@@ -23,7 +23,7 @@ class CommandPanelView extends View
|
||||
historyIndex: 0
|
||||
maxSerializedHistorySize: 100
|
||||
|
||||
initialize: (state={}) ->
|
||||
initialize: (state) ->
|
||||
@commandInterpreter = new CommandInterpreter(rootView.project)
|
||||
|
||||
@command 'tool-panel:unfocus', => rootView.focus()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module.exports =
|
||||
treeView: null
|
||||
|
||||
activate: (@state={}) ->
|
||||
activate: (@state) ->
|
||||
@createView() if @state.attached
|
||||
rootView.command 'tree-view:toggle', => @createView().toggle()
|
||||
rootView.command 'tree-view:reveal-active-file', => @createView().revealActiveFile()
|
||||
|
||||
Reference in New Issue
Block a user