From 7fe567521e839bfd9fde838f2b3efd78db868307 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Thu, 4 Sep 2014 17:09:52 -0700 Subject: [PATCH] Use the model methods in the commands --- src/pane-view.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pane-view.coffee b/src/pane-view.coffee index b41162389..0de2ca7f1 100644 --- a/src/pane-view.coffee +++ b/src/pane-view.coffee @@ -75,10 +75,10 @@ class PaneView extends View @command 'pane:show-item-8', => @activateItemAtIndex(7) @command 'pane:show-item-9', => @activateItemAtIndex(8) - @command 'pane:split-left', => @splitLeft(@copyActiveItem()) - @command 'pane:split-right', => @splitRight(@copyActiveItem()) - @command 'pane:split-up', => @splitUp(@copyActiveItem()) - @command 'pane:split-down', => @splitDown(@copyActiveItem()) + @command 'pane:split-left', => @model.splitLeft(copyActiveItem: true) + @command 'pane:split-right', => @model.splitRight(copyActiveItem: true) + @command 'pane:split-up', => @model.splitUp(copyActiveItem: true) + @command 'pane:split-down', => @model.splitDown(copyActiveItem: true) @command 'pane:close', => @model.destroyItems() @model.destroy()