Permalink
Browse files

ui: remove debugging

* realtime: add debugging
  • Loading branch information...
1 parent 33cc35e commit 38e8c25aaa8dd7f0d1b30ba955c6f14cc762f6b4 @indutny indutny committed Feb 15, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −0 home/realtime.js
  2. +0 −2 public/javascripts/main.js
View
@@ -179,12 +179,16 @@ GuysPool.prototype.onMessage = function onMessage(channel, data) {
guy = self.map[data.id];
if (type === 'enter' && !guy) {
+ console.log(type, data);
+ console.log('----------');
self.insert(data, true);
return;
}
if (!guy) return;
if (type === 'leave') {
+ console.log(type, data);
+ console.log('----------');
self.remove(guy, true);
} else if (type === 'mode') {
guy.mode = data.mode;
@@ -349,8 +349,6 @@
// Displaying ghosts
function onGuyEnter(guy) {
- if (window.console) console.log(guy.id);
-
// Ignore myself
if (guy.id === socket.socket.sessionid) return;
if (ghostsMap[guy.id]) return;

0 comments on commit 38e8c25

Please sign in to comment.