Sha256: 56cb41bea406c01611d8f627cbc22ba1c81e2013492bee5d0bacba7efc2056a2
Contents?: true
Size: 877 Bytes
Versions: 4
Compression:
Stored size: 877 Bytes
Contents
(function() { var StatusDisplay; StatusDisplay = (function() { StatusDisplay.prototype.status_history = []; StatusDisplay.prototype.waiting_statuses = []; StatusDisplay.prototype.max_statuses = 10; function StatusDisplay(ws, target) { this.ws = ws; this.target = target; console.log("Setting up status bar at " + this.target); this.target.click((function(_this) { return function() { return _this.show_history(); }; })(this)); } StatusDisplay.prototype.show_status = function(data) { this.target.html(this.ws.escape(data.text, data)); return this.status_history << data; }; StatusDisplay.prototype.show_history = function() { return alert(this.status_history); }; return StatusDisplay; })(); window.StatusDisplay = StatusDisplay; }).call(this);
Version data entries
4 entries across 4 versions & 1 rubygems