title: Uncaught TypeError: Illegal Constructor
body: <pre><code>var Layers, a;
  
  Layers = {};
  
  Layers.View = function(value) {
    return function() {
      $.extend(this, $("&lt;div&gt;&lt;/div&gt;"));
      return this.html(value.apply(null, arguments));
    };
  };
  
  a = new Layers.View(function(a) {
    return "joke" + a;
  });
  
  a('ddd').appendTo('body');
  </code></pre>
  
  <p>It renders the first time, but code doesn't work after that.</p>