mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
replaced ){ with ) {
This commit is contained in:
parent
76daceb2e7
commit
551fc943c9
20 changed files with 56 additions and 56 deletions
|
|
@ -13,10 +13,10 @@ function (Parent, ProtocolHelper) {
|
|||
|
||||
var self = this;
|
||||
|
||||
socketLink.on('message', function (message){
|
||||
socketLink.on('message', function (message) {
|
||||
self.onMessage(message);
|
||||
});
|
||||
socketLink.on('disconnect', function (){
|
||||
socketLink.on('disconnect', function () {
|
||||
self.onDisconnect();
|
||||
});
|
||||
}
|
||||
|
|
@ -27,18 +27,18 @@ function (Parent, ProtocolHelper) {
|
|||
this.channelProcess = channelProcess;
|
||||
}
|
||||
|
||||
User.prototype.onMessage = function (message){
|
||||
User.prototype.onMessage = function (message) {
|
||||
var self = this;
|
||||
ProtocolHelper.runCommands(message, function (command, options){
|
||||
ProtocolHelper.runCommands(message, function (command, options) {
|
||||
self.processControlCommand(command, options);
|
||||
});
|
||||
}
|
||||
|
||||
User.prototype.onDisconnect = function (){
|
||||
User.prototype.onDisconnect = function () {
|
||||
this.coordinator.removeUser(this);
|
||||
}
|
||||
|
||||
User.prototype.processControlCommand = function (command, options){
|
||||
User.prototype.processControlCommand = function (command, options) {
|
||||
switch(command) {
|
||||
|
||||
case 'join':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue