mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Call hide on the views instead of the jQuery collection
This ensures that views with custom ::hide methods can invoke special behavior.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user