Permalink
Browse files

Revert "minor change"

This reverts commit a106963.
  • Loading branch information...
1 parent a106963 commit 4ca89fcfee00b2b679d754e2e4b9ac28cbf25780 @pksunkara committed Sep 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 public/javascripts/collab.js
@@ -47,9 +47,9 @@ key_handler = function (event) {
socket.on('edit', function (data){
var text = acee.getSession().getValue();
- //text = text.substr(0,data.cursor-1) + data.edit + text.substr(data.cursor-1+data.edit.length);
+ text = text.substr(0,data.cursor-1) + data.edit + text.substr(data.cursor-1+data.edit.length);
docVersion += 1;
- acee.getSession().insert(data.edit);
+ acee.getSession().setValue(text);
});
socket.on('version', function(data){

0 comments on commit 4ca89fc

Please sign in to comment.