Anton Shestakov <av6@dwimlabs.net>, Tue, 24 May 2016 13:11:13 +0800
templates: include top level element in templates
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)