From e28ef3a76caff85e1bbac0db1553c81ab415b7de Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Tue, 27 Aug 2013 12:59:05 -0700 Subject: [PATCH] :non-potable_water: Call off on active item when it is removed --- src/pane.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pane.coffee b/src/pane.coffee index 87a683c28..23a7cd8b4 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -281,6 +281,7 @@ class Pane extends View # Public: Just remove the item at the given index. removeItemAtIndex: (index, options={}) -> item = @items[index] + @activeItem.off? 'title-changed', @activeItemTitleChanged if item is @activeItem @showNextItem() if item is @activeItem and @items.length > 1 _.remove(@items, item) @state.get('items').remove(index) if options.updateState ? true