Anton Shestakov <av6@dwimlabs.net>, Mon, 12 Dec 2016 18:00:04 +0800
messages: rename rivets.bind() parameter
js/progress.js
Permissions: -rw-r--r--
// Generated by CoffeeScript 1.12.1 var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; window.Tram.ProgressApp = (function(superClass) { extend(ProgressApp, superClass); return ProgressApp.__super__.constructor.apply(this, arguments); ProgressApp.prototype.initialize = function() { this.listenTo(this.model, 'change:progress', this.updateProgress); ProgressApp.prototype.updateProgress = function() { switch (this.model.get('progress')) { return setTimeout((function(_this) { if (_this.model.get('progress') === 0) { return _this.model.set('progress', 10); return setTimeout((function(_this) { if (_this.model.get('progress') === 100) { return _this.model.unset('progress'); ProgressApp.prototype.render = function() { this.rivet = rivets.bind(this.el, { ProgressApp.prototype.remove = function() { return ProgressApp.__super__.remove.apply(this, arguments); //# sourceMappingURL=progress.js.map