mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Upgrade to theorist 0.13.0 to rename Signal::flatMapLatest -> ::switch
Shorter, simpler, less intimidating.
This commit is contained in:
@@ -14,7 +14,7 @@ class PaneContainerModel extends Model
|
||||
previousRoot: null
|
||||
|
||||
@behavior 'activePaneItem', ->
|
||||
@$activePane.flatMapLatest (activePane) -> activePane?.$activeItem
|
||||
@$activePane.switch (activePane) -> activePane?.$activeItem
|
||||
|
||||
constructor: ->
|
||||
super
|
||||
|
||||
@@ -17,7 +17,7 @@ class PaneModel extends Model
|
||||
|
||||
@behavior 'active', ->
|
||||
@$container
|
||||
.flatMapLatest((container) -> container?.$activePane)
|
||||
.switch((container) -> container?.$activePane)
|
||||
.map((activePane) => activePane is this)
|
||||
.distinctUntilChanged()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user