title: Events not registering after replaceWith
body: <p>When I <code>replaceWith</code> an element to bring one out of the DOM, then <code>replaceWith</code> it back in, events registered to it do not fire.  I need to events to remain intact.</p>
  
  <p>Here's my Javascript:</p>
  
  <pre><code>var replacement = $(document.createElement('span'));
  var original = $(this).replaceWith(replacement);
  
  replacement
      .css('background-color', 'green')
      .text('replacement for ' + $(this).text())
      .click(function() {
          replacement.replaceWith(original);
      });
  </code></pre>
  
  <p><a href="http://liranuna.com/strager/b/replace-with.html" rel="noreferrer"><strong>Live demo</strong></a></p>
  
  <p>In the demo, when you click an element, it is replaced with another element using <code>replaceWith</code>.  When you click the new element, that is replaced with the original element using <code>replaceWith</code>.  However, the click handler does not work any more (where I would think it should).</p>