title: replaceWith and jQuery draggable drop?
body: <p>I'm trying to understand why </p>
  
  <pre><code>$('#title').replaceWith('ha'); 
  </code></pre>
  
  <p>will work outside the</p>
  
  <pre><code>drop: function(event, ui) {}
  </code></pre>
  
  <p>area in jquery's droppable script, but it won't work inside. Specifically, if I do</p>
  
  <pre><code>$(".droppable").droppable({
  drop: function(event, ui) {
      $('#title').replaceWith('ha'); 
       }
  </code></pre>
  
  <p>I get a <code>Runtime Error (line 1102) data(...).options is null or not an object</code>. Also if I insert a <code>$('#title').append('ha');</code> inside the drop:, it works.
  However if I put <code>$('#title').replaceWith('ha');</code> anywhere else outside</p>
  
  <pre><code>$(".droppable").droppable({ /* */  });
  </code></pre>
  
  <p>it works?</p>