Upgrade to emissary 0.31.0 for implicit 'value' subscriptions on signals

Previously, when you always had to specify the event name of 'value'
when calling `::subscribe` with a signal. Now, if you don't specify an
event name, 'value' is assumed.
This commit is contained in:
Nathan Sobo
2014-01-11 11:22:31 -07:00
parent ef8b7531b0
commit 3ab7836ab2
6 changed files with 9 additions and 9 deletions

View File

@@ -23,7 +23,7 @@
"clear-cut": "0.2.0",
"coffee-script": "1.6.3",
"coffeestack": "0.6.0",
"emissary": "0.19.0",
"emissary": "0.31.0",
"first-mate": "0.14.0",
"fs-plus": "0.14.0",
"fstream": "0.1.24",

View File

@@ -35,7 +35,7 @@ class DisplayBuffer extends Model
@subscribe @buffer, 'markers-updated', @handleBufferMarkersUpdated
@subscribe @buffer, 'marker-created', @handleBufferMarkerCreated
@subscribe @$softWrap, 'value', (softWrap) =>
@subscribe @$softWrap, (softWrap) =>
@emit 'soft-wrap-changed', softWrap
@updateWrappedScreenLines()

View File

@@ -73,8 +73,8 @@ class Editor extends Model
@languageMode = new LanguageMode(this, @buffer.getExtension())
@subscribe @$scrollTop, 'value', (scrollTop) => @emit 'scroll-top-changed', scrollTop
@subscribe @$scrollLeft, 'value', (scrollLeft) => @emit 'scroll-left-changed', scrollLeft
@subscribe @$scrollTop, (scrollTop) => @emit 'scroll-top-changed', scrollTop
@subscribe @$scrollLeft, (scrollLeft) => @emit 'scroll-left-changed', scrollLeft
atom.project.addEditor(this) if registerEditor

View File

@@ -21,8 +21,8 @@ class PaneContainer extends View
else
@model = new PaneContainerModel({root: params?.root?.model})
@subscribe @model.$root, 'value', @onRootChanged
@subscribe @model.$activePaneItem.changes, 'value', @onActivePaneItemChanged
@subscribe @model.$root, @onRootChanged
@subscribe @model.$activePaneItem.changes, @onActivePaneItemChanged
viewForModel: (model) ->
if model?

View File

@@ -50,13 +50,13 @@ class Pane extends View
handleEvents: ->
@subscribe @model, 'destroyed', => @remove()
@subscribe @model.$activeItem, 'value', @onActiveItemChanged
@subscribe @model.$activeItem, @onActiveItemChanged
@subscribe @model, 'item-added', @onItemAdded
@subscribe @model, 'item-removed', @onItemRemoved
@subscribe @model, 'item-moved', @onItemMoved
@subscribe @model, 'before-item-destroyed', @onBeforeItemDestroyed
@subscribe @model, 'item-destroyed', @onItemDestroyed
@subscribe @model.$active, 'value', @onActiveStatusChanged
@subscribe @model.$active, @onActiveStatusChanged
@subscribe this, 'focusin', => @model.focus()
@subscribe this, 'focusout', => @model.blur()

View File

@@ -35,7 +35,7 @@ class TokenizedBuffer extends Model
@subscribe @buffer, "changed", (e) => @handleBufferChange(e)
@subscribe @buffer, "path-changed", => @bufferPath = @buffer.getPath()
@subscribe @$tabLength.changes.onValue (tabLength) =>
@subscribe @$tabLength.changes, (tabLength) =>
lastRow = @buffer.getLastRow()
@tokenizedLines = @buildPlaceholderTokenizedLinesForRows(0, lastRow)
@invalidateRow(0)