Permalink
Browse files

Fix bug in tracker

  • Loading branch information...
gsiddardha committed Sep 18, 2011
1 parent ebc4649 commit e73360dc6aaacf8647e0450cf6dc8b79628a385c
Showing with 7 additions and 5 deletions.
  1. +7 −5 public/javascripts/collab.js
@@ -75,12 +75,14 @@ socket.on('edit', function (data){
docVersion += 1;
acee.getSession().setValue(text);
- if(data.n == socket.nickname){
- setCursor(data.d.cursor);
- } else {
- setCursor(currentCursor);
- }
+ socket.get('nickname', function(err, nickame){
+ if(data.n == nickname){
+ setCursor(data.d.cursor);
+ } else {
+ setCursor(currentCursor);
+ }
});
+});
socket.on('version', function(data){
version = data.version;

0 comments on commit e73360d

Please sign in to comment.