285:30fd0d2a81ce
Anton Shestakov <av6@dwimlabs.net>, Sat, 16 Sep 2017 22:29:17 +0800
Make: use npm update for devel target package.json says we want coffee-script >= 1.6.1, so that's what `make devel` should install (the newest version): since .js source is tracked, there's no risk of running into breaking changes in coffee-script outside of test environment. But running into such changes during tests is OK and even potentially desirable.

previous change 232:0fe8137e0f76

coffee/progress.coffee

Permissions: -rw-r--r--

Other formats: Feeds:
class window.Tram.ProgressApp extends Backbone.View
initialize: ->
@listenTo(@model, 'change:progress', @updateProgress)
@render()
updateProgress: ->
switch @model.get('progress')
when 0
setTimeout =>
if @model.get('progress') is 0
@model.set('progress', 10)
, 600
when 100
setTimeout =>
if @model.get('progress') is 100
@model.unset('progress')
, 600
render: ->
@rivet = rivets.bind(@el, model: @model, view: @)
@
remove: ->
@rivet.unbind()
super