Upgrade to theorist 0.13.0 to rename Signal::flatMapLatest -> ::switch

Shorter, simpler, less intimidating.
This commit is contained in:
Nathan Sobo 2014-01-11 11:19:19 -07:00
parent b04f9f9488
commit ef8b7531b0
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@
"temp": "0.5.0",
"text-buffer": "0.12.0",
"underscore-plus": "0.6.1",
"theorist": "~0.12.0",
"theorist": "~0.13.0",
"delegato": "~0.4.0",
"mixto": "~0.4.0"
},

View File

@ -14,7 +14,7 @@ class PaneContainerModel extends Model
previousRoot: null
@behavior 'activePaneItem', ->
@$activePane.flatMapLatest (activePane) -> activePane?.$activeItem
@$activePane.switch (activePane) -> activePane?.$activeItem
constructor: ->
super

View File

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