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:
Nathan Sobo
2014-01-15 15:49:44 -07:00
parent 2f8ec967f6
commit ccd86d91de

View File

@@ -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