Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Fix bug in tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
gsiddardha committed Sep 18, 2011
1 parent ebc4649 commit e73360d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions public/javascripts/collab.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ socket.on('edit', function (data){
docVersion += 1; docVersion += 1;
acee.getSession().setValue(text); acee.getSession().setValue(text);


if(data.n == socket.nickname){ socket.get('nickname', function(err, nickame){
setCursor(data.d.cursor); if(data.n == nickname){
} else { setCursor(data.d.cursor);
setCursor(currentCursor); } else {
} setCursor(currentCursor);
}
}); });
});


socket.on('version', function(data){ socket.on('version', function(data){
version = data.version; version = data.version;
Expand Down

0 comments on commit e73360d

Please sign in to comment.