Anton Shestakov <av6@dwimlabs.net>, Tue, 24 May 2016 14:45:47 +0800
index: scroll chat logs to bottom on switching
This is not the most correct solution (although it works). It's better not to
detach children and instead set "visibility: hidden" on them and then do a
small css-related ritual dance so that they don't mess with each other. That
way scroll positions would always be retained.
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)