From 0102c0fd8d011d19fc22f4624847b3c4f36d0761 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 16 Apr 2013 09:26:24 -0700 Subject: [PATCH] Bind click events using new button outlets --- src/packages/command-panel/lib/command-panel-view.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/packages/command-panel/lib/command-panel-view.coffee b/src/packages/command-panel/lib/command-panel-view.coffee index a3fddefb2..c7ea17f33 100644 --- a/src/packages/command-panel/lib/command-panel-view.coffee +++ b/src/packages/command-panel/lib/command-panel-view.coffee @@ -14,8 +14,8 @@ class CommandPanelView extends View @div class: 'loading is-loading', outlet: 'loadingMessage', 'Searching...' @div class: 'header', outlet: 'previewHeader', => @ul outlet: 'expandCollapse', class: 'expand-collapse', => - @li 'Expand All' - @li 'Collapse All' + @li outlet: 'expandAll', 'Expand All' + @li outlet: 'collapseAll', 'Collapse All' @span outlet: 'previewCount', class: 'preview-count' @subview 'previewList', new PreviewList(rootView) @@ -47,8 +47,8 @@ class CommandPanelView extends View @subscribeToCommand rootView, 'command-panel:repeat-relative-address-in-reverse', => @repeatRelativeAddress(reverse: true) @subscribeToCommand rootView, 'command-panel:set-selection-as-regex-address', => @setSelectionAsLastRelativeAddress() - @on 'click', '.expand', @onExpandAll - @on 'click', '.collapse', @onCollapseAll + @expandAll.on 'click', @onExpandAll + @collapseAll.on 'click', @onCollapseAll @previewList.hide() @previewHeader.hide()