Anton Shestakov <av6@dwimlabs.net>, Sun, 04 Dec 2016 01:33:05 +0800
index: don't use rivets to update src attribute of <video> elements
Changing this attribute twice in a row is bad and shouldn't happen, and we're
already setting it in the view (so we can call el.play() immediately
afterwards).
coffee/progress.coffee
Permissions: -rw-r--r--
class window.Tram.ProgressApp extends Backbone.View @listenTo(@model, 'change:progress', @updateProgress) 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: @)