From 68c3113b750abb35b8aeb85ff37d1c43398276af Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 21 May 2014 17:11:36 -0600 Subject: [PATCH] Call hide on the views instead of the jQuery collection This ensures that views with custom ::hide methods can invoke special behavior. --- src/pane-view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pane-view.coffee b/src/pane-view.coffee index d489e3ee6..d5644f652 100644 --- a/src/pane-view.coffee +++ b/src/pane-view.coffee @@ -149,7 +149,7 @@ class PaneView extends View hasFocus = @hasFocus() item.on? 'title-changed', @activeItemTitleChanged view = @viewForItem(item) - @itemViews.children().not(view).hide() + otherView.hide() for otherView in @itemViews.children().not(view).views() @itemViews.append(view) unless view.parent().is(@itemViews) view.show() if @attached view.focus() if hasFocus