title: ace.js selection of word by user does not work
body: <p>I am using ace.js, but I have a strange problem, after changing the content of the editor,
  selection of words (or line) by user (using mouse) does not work.</p>
  
  <p>Here a video where I show the problem (I hope it's ok):
  <a href="http://videobam.com/zxDaO" rel="nofollow">http://videobam.com/zxDaO</a></p>
  
  <p>Anyone has idea about the reason of this issue?</p>
  
  <p>EDIT:
  Post a little of code to clear the situation:</p>
  
  <pre><code>function init(editor_, wsocket, curProj, projManager) {
      ws = wsocket;
      drawer = require("../../lib/statemachine/stateMachine");
      currentProject = curProj;
      editor = editor_;
      pm = projManager;  
      writer = new WriterOnContent(editor_);
       }
  
  function WriterOnContent( editor) {   
      this.defaultStateName = "  StateName: TYPE";    this.delimitator = ',' ;    this.editor = editor; //*******
      this.userIsModifying = 0;
       }
  </code></pre>
  
  <p>If I comment the line in WriterOnContent : this.editor = editor;  I have not the problem, but I really don't understand why.</p>