Download:
child 73:55c7c1f07e82
parent 71:fc18ae0e2cd1
72:249e458f53ec
Anton Shestakov <av6@dwimlabs.net>, Sat, 02 Apr 2016 00:51:36 +0800
coffee: various stylistic fixes

5 файлов изменено, 11 вставок(+), 11 удалений(-) [+]
coffee/contacts.coffee file | annotate | diff | comparison | revisions
coffee/messages.coffee file | annotate | diff | comparison | revisions
js/contacts.js file | annotate | diff | comparison | revisions
js/contacts.js.map file | annotate | diff | comparison | revisions
js/messages.js.map file | annotate | diff | comparison | revisions
--- a/coffee/contacts.coffee Wed Mar 30 17:43:33 2016 +0800
+++ b/coffee/contacts.coffee Sat Apr 02 00:51:36 2016 +0800
@@ -6,7 +6,7 @@
initialize: ->
@on 'add change:avatar', ->
- avatar = @get 'avatar'
+ avatar = @get('avatar')
if avatar?.mime and avatar?.data
@set('d/avatar', "data:#{ avatar.mime };base64,#{ avatar.data }")
else
@@ -50,15 +50,15 @@
class Tram.AvatarView extends Backbone.View
tagName: 'div'
className: 'vignette'
+ template: $('#avatar-template').html()
colors: Tram.colors.avatar
- template: $('#avatar-template').html()
getColors: (hash) =>
ci = hash % @colors.length
"color: white; background: #{ @colors[ci] };"
render: ->
- @$el.html @template
+ @$el.html(@template)
@rivet = rivets.bind(@el, model: @model, view: this)
@
@@ -97,7 +97,7 @@
render: ->
@rivet = rivets.bind(@el, model: @model, view: this)
av = new Tram.AvatarView(model: @model)
- @$avatarColumn.prepend av.render().el
+ @$avatarColumn.prepend(av.render().el)
@
remove: ->
@@ -112,7 +112,7 @@
@listenTo(@collection, 'sort', @onSort)
onAdd: (model, collection) ->
- mi = collection.indexOf model
+ mi = collection.indexOf(model)
model.view = new Tram.ContactView(model: model)
el = model.view.render().el
if mi is 0
--- a/coffee/messages.coffee Wed Mar 30 17:43:33 2016 +0800
+++ b/coffee/messages.coffee Sat Apr 02 00:51:36 2016 +0800
@@ -93,7 +93,7 @@
view = new Tram.MessageView(model: model)
el = view.render().el
if mi is 0
- @$el.prepend el
+ @$el.prepend(el)
else
@$el.children().eq(mi - 1).after(el)
@@ -101,7 +101,7 @@
@scroll()
bottomed: ->
- return @$el.scrollTop() + @$el.height() == @$el.get(0).scrollHeight
+ @$el.scrollTop() + @$el.height() == @$el.get(0).scrollHeight
scroll: ->
@$el.scrollTop(@$el.get(0).scrollHeight)
--- a/js/contacts.js Wed Mar 30 17:43:33 2016 +0800
+++ b/js/contacts.js Sat Apr 02 00:51:36 2016 +0800
@@ -102,9 +102,9 @@
AvatarView.prototype.className = 'vignette';
- AvatarView.prototype.colors = Tram.colors.avatar;
+ AvatarView.prototype.template = $('#avatar-template').html();
- AvatarView.prototype.template = $('#avatar-template').html();
+ AvatarView.prototype.colors = Tram.colors.avatar;
AvatarView.prototype.getColors = function(hash) {
var ci;
--- a/js/contacts.js.map Wed Mar 30 17:43:33 2016 +0800
+++ b/js/contacts.js.map Sat Apr 02 00:51:36 2016 +0800
@@ -6,5 +6,5 @@
"coffee/contacts.coffee"
],
"names": [],
- "mappings": ";AAAA;AAAA,MAAA;;;;EAAM,IAAI,CAAC;;;;;;;sBACT,WAAA,GAAa;;sBACb,QAAA,GACE;MAAA,QAAA,EAAU,aAAV;MACA,IAAA,EAAM,SADN;;;sBAGF,UAAA,GAAY,SAAA;MACV,IAAC,CAAA,EAAD,CAAI,mBAAJ,EAAyB,SAAA;AACvB,YAAA;QAAA,MAAA,GAAS,IAAC,CAAA,GAAD,CAAK,QAAL;QACT,sBAAG,MAAM,CAAE,cAAR,sBAAiB,MAAM,CAAE,cAA5B;iBACE,IAAC,CAAA,GAAD,CAAK,UAAL,EAAiB,OAAA,GAAS,MAAM,CAAC,IAAhB,GAAsB,UAAtB,GAAiC,MAAM,CAAC,IAAzD,EADF;SAAA,MAAA;iBAGE,IAAC,CAAA,KAAD,CAAO,UAAP,EAHF;;MAFuB,CAAzB;MAOA,IAAC,CAAA,EAAD,CAAI,iDAAJ,EAAuD,SAAA;eACrD,IAAC,CAAA,GAAD,CAAK,UAAL,EAAiB,IAAC,CAAA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