mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Make PaneContainer::activePaneItem behavior distinct until changed
If we switch from one empty active pane to another empty active pane, there's no reason to emit a value from the activePaneItem behavior.
This commit is contained in:
@@ -15,7 +15,9 @@ class PaneContainer extends Model
|
||||
previousRoot: null
|
||||
|
||||
@behavior 'activePaneItem', ->
|
||||
@$activePane.switch (activePane) -> activePane?.$activeItem
|
||||
@$activePane
|
||||
.switch((activePane) -> activePane?.$activeItem)
|
||||
.distinctUntilChanged()
|
||||
|
||||
constructor: (params) ->
|
||||
super
|
||||
|
||||
Reference in New Issue
Block a user