{:uriI"file://app/assets/javascripts/views/user/rooms/list.coffee?type=application/javascript&pipeline=self&id=30464bf9d98374da14d0924413d52918bec6bf47e7c65936dd08f79ddde3724e:ET:load_pathI"app/assets/javascripts;T: filenameI"8app/assets/javascripts/views/user/rooms/list.coffee;T: nameI"views/user/rooms/list;T:logical_pathI""views/user/rooms/list.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { 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; App.Views.User.Rooms.List = (function(superClass) { extend(List, superClass); function List(opts) { if (opts == null) { opts = {}; } List.__super__.constructor.call(this, opts); } List.prototype.render = function() { return this.connectWith(App.Models.Room); }; List.prototype.receivedSignal = function(signal, data) { switch (signal) { case "Room member_joined": return this._memberJoined(data.room_id); case "Room member_left": return this._memberLeft(data.room_id); case "Room created": return $("#rooms_list").append(JST["templates/user/rooms/room_for_list"]({ room: data.room })); case "Room destroyed": return $("#room_" + data.room_id).remove(); } }; List.prototype._memberJoined = function(roomId) { var node; node = this._membersNode(roomId); return node.text(parseInt(node.text()) + 1); }; List.prototype._memberLeft = function(roomId) { var node; node = this._membersNode(roomId); return node.text(parseInt(node.text()) - 1); }; List.prototype._membersNode = function(roomId) { return $("#room_" + roomId).find('td.members'); }; return List; })(App.Views.Base); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"Ffile-digest://app/assets/javascripts/views/user/rooms/list.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%Ђrˣ r6T]t햳}uVU*: lengthi:dependencies_digest"%]ڔD;MQ?q'YcƖ E:idI"E30464bf9d98374da14d0924413d52918bec6bf47e7c65936dd08f79ddde3724e;F: mtimel+ȡX