Download:
child 237:72668edc4a70
parent 235:3c616f038e21
236:7e7d68a03bad
Anton Shestakov <av6@dwimlabs.net>, Sat, 03 Dec 2016 12:50:36 +0800
views: use @ instead of this for rivets.bind() for consistency

4 файлов изменено, 5 вставок(+), 5 удалений(-) [+]
coffee/calls.coffee file | annotate | diff | comparison | revisions
coffee/contacts.coffee file | annotate | diff | comparison | revisions
coffee/messages.coffee file | annotate | diff | comparison | revisions
coffee/sidebar.coffee file | annotate | diff | comparison | revisions
--- a/coffee/calls.coffee Sat Dec 03 12:32:39 2016 +0800
+++ b/coffee/calls.coffee Sat Dec 03 12:50:36 2016 +0800
@@ -93,7 +93,7 @@
@enableTracks(@model.get('remote/stream')?.getAudioTracks?(), not muted)
render: ->
- @rivet = rivets.bind(@el, model: @model, view: this)
+ @rivet = rivets.bind(@el, model: @model, view: @)
@
remove: ->
--- a/coffee/contacts.coffee Sat Dec 03 12:32:39 2016 +0800
+++ b/coffee/contacts.coffee Sat Dec 03 12:50:36 2016 +0800
@@ -90,7 +90,7 @@
"color: white; background: #{ @colors[ci] };"
render: ->
- @rivet = rivets.bind(@el, model: @model, view: this)
+ @rivet = rivets.bind(@el, model: @model, view: @)
@
remove: ->
@@ -127,7 +127,7 @@
"background: #{ @colors[show] || @colors['default'] };"
render: ->
- @rivet = rivets.bind(@el, model: @model, view: this)
+ @rivet = rivets.bind(@el, model: @model, view: @)
av = new Tram.AvatarView(model: @model)
@$avatarColumn.prepend(av.render().el)
@
--- a/coffee/messages.coffee Sat Dec 03 12:32:39 2016 +0800
+++ b/coffee/messages.coffee Sat Dec 03 12:50:36 2016 +0800
@@ -75,7 +75,7 @@
@model.get('contact')?.get('d/handle') or @model.get('from')
render: (model) ->
- @rivet = rivets.bind(@el, model: @model, view: this)
+ @rivet = rivets.bind(@el, model: @model, view: @)
contact = @model.get('contact')
if contact
av = new Tram.AvatarView(model: contact)
--- a/coffee/sidebar.coffee Sat Dec 03 12:32:39 2016 +0800
+++ b/coffee/sidebar.coffee Sat Dec 03 12:50:36 2016 +0800
@@ -22,7 +22,7 @@
@model.trigger('action/disconnect')
render: ->
- @rivet = rivets.bind(@el, model: @model, view: this)
+ @rivet = rivets.bind(@el, model: @model, view: @)
@
remove: ->