mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03: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:
parent
a8538a1361
commit
68c3113b75
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user