263:c92c3639acf3
Anton Shestakov <av6@dwimlabs.net>, Fri, 16 Dec 2016 11:23:21 +0800
provision: skip generating a custom dhparams file to save on deployment time

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