{:uriI"file://app/assets/javascripts/services/notification_center.coffee?type=application/javascript&pipeline=self&id=40bf8ff876cc8b48d22de50bcf6e56cfe04c9a4f85ca29f5d0a3aa70cac18508:ET:load_pathI"app/assets/javascripts;T: filenameI"?app/assets/javascripts/services/notification_center.coffee;T: nameI"!services/notification_center;T:logical_pathI")services/notification_center.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { App.Services.NotificationCenter = (function() { function NotificationCenter() {} NotificationCenter.prototype.receivedSignal = function(data) { switch (data.signal) { case 'ping': return this._pingSignal(); case 'message': return this._messageSignal(data); } }; NotificationCenter.prototype._pingSignal = function() { if (App.Env.namespaceController.constructor !== App.Controllers.User) { return; } return alert('Ping!'); }; NotificationCenter.prototype._messageSignal = function(data) { var view; if (!(view = this._getRoomView())) { return; } return view.receivedMessage(data.message, data.author); }; NotificationCenter.prototype._getRoomView = function() { if (App.Env.namespaceController.constructor !== App.Controllers.User) { return false; } if (App.Env.controller.constructor !== App.Controllers.User.Rooms) { return false; } if (App.Env.action !== 'show') { return false; } return App.Env.controller.getView('show'); }; return NotificationCenter; })(); }).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"Mfile-digest://app/assets/javascripts/services/notification_center.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%9 y|h dV6Y[+Sj: lengthi:dependencies_digest"%"q]a"qK"窸:idI"E40bf8ff876cc8b48d22de50bcf6e56cfe04c9a4f85ca29f5d0a3aa70cac18508;F: mtimel+n,X