Remove unneeded param defaults from activate methods

This commit is contained in:
Corey Johnson
2013-02-13 10:43:13 -08:00
parent 7ade089d04
commit fc29a0d347
3 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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()

View File

@@ -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()