title: How can I override backbone.view constructor to use with own implemented registry
body: <p>Ok, I need to override <code>Backbone.View.prototype.constructor</code> to save <code>cid -&gt; view</code> pair.</p>
  
  <p>Wrote this but got error :</p>
  
  <pre><code>Backbone.Registry =
    items: {}
    register: (v)-&gt; @items[v.cid] = v
    get: (cid)-&gt; @items[cid]
  
  fn = Backbone.View.prototype.constructor
  Backbone.View.prototype.constructor = (options)-&gt;
    fn.apply(this,[options])
    Backbone.Registry.register(this)
  </code></pre>
  
  <p>But it make lots of errors in other libraries (like marionette and handlebars).</p>