Anton Shestakov <av6@dwimlabs.net>, Sun, 03 Apr 2016 12:29:29 +0800
tram: new possible pip color (chat), add another pip to the sidebar
js/sidebar.js
Permissions: -rw-r--r--
// Generated by CoffeeScript 1.10.0 var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, 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.SidebarApp = (function(superClass) { extend(SidebarApp, superClass); this.disconnect = bind(this.disconnect, this); this.show = bind(this.show, this); this.getPipColor = bind(this.getPipColor, this); return SidebarApp.__super__.constructor.apply(this, arguments); SidebarApp.prototype.colors = Tram.colors.show; SidebarApp.prototype.initialize = function() { SidebarApp.prototype.getPipColor = function(show) { return "background: " + (this.colors[show] || this.colors['default']) + ";"; SidebarApp.prototype.show = function(event) { $btn = $(event.currentTarget); show = $btn.attr('data-show'); return this.model.trigger('show', show, status); SidebarApp.prototype.disconnect = function() { return this.model.trigger('disconnect'); SidebarApp.prototype.render = function(model) { this.rivet = rivets.bind(this.el, { SidebarApp.prototype.remove = function() { return SidebarApp.__super__.remove.apply(this, arguments); //# sourceMappingURL=sidebar.js.map