Permalink
Browse files

Merge branch 'master' of github.com:nko/hms-dreadnode

  • Loading branch information...
2 parents 7490def + 7f04c45 commit 1821f86213de76b411d6776b42b5ad277b996606 @getify getify committed Aug 29, 2010
Showing with 7 additions and 5 deletions.
  1. +7 −5 public/js/socket.js
View
@@ -24,6 +24,11 @@
// Watership Down
var dispatch = {
+ _alertMessage : function(message) {
+ var msg = message.msg;
+ console.log(msg);
+ alert(msg)
+ },
auth : function(message) {
var status = message.status || "failed";
var msg = message.msg || "?";
@@ -40,11 +45,7 @@
global.APPVIEW.win_state = false;
global.APPVIEW.next_page();
},
- gamestart : function(message) {
- var msg = message.msg;
- console.log(msg);
- alert(msg)
- },
+ gamestart : this._alertMessage,
// not implemented
gravatar : function(message) {
var msg = message.msg || "";
@@ -75,6 +76,7 @@
console.log("OUCH "+ouchLocation);
global.My_Gameboard.set_peg(ouchLocation);
},
+ quitter : this._alertMessage,
setup : function(message) {
var playersState = message.msg;
console.log(playersState);

0 comments on commit 1821f86

Please sign in to comment.