Anton Shestakov <av6@dwimlabs.net>, Sun, 29 May 2016 22:32:42 +0800
messages: have a default Message stamp ("now"), use it as a shortcut
Messages collection already has a comparator(), _splittable() and _foldable()
that all depend on a defined stamp.
coffee/progress.coffee
Permissions: -rw-r--r--
class window.Tram.ProgressApp extends Backbone.View @listenTo(@model, 'change:progress', @updateProgress) "width: #{ progress ? 0 }%;" switch @model.get('progress') if @model.get('progress') is 0 @model.set('progress', 10) if @model.get('progress') is 100 @rivet = rivets.bind(@el, model: @model, view: this)