title: Backbone.js: pass model to sub-view by reference
body: <p>UPDATE: As it turns out, i had a leftover this.model = new MasterModel(); in my subViews initialize() function. </p>
  
  <p>I am trying to separate my huge view to smaller views and so I have created a "master" layout view that attaches to itself some subviews and passes it's model to them.</p>
  
  <p>However, it seems that when my sub-view updates the model, these changes are not reflected on the "master" view's model.</p>
  
  <p>Here's what I am trying to do:</p>
  
  <pre><code>var master = new MasterModel();
  var masterView = new MasterView({model:master});
  </code></pre>
  
  <p>Inside of the masterView initialize() function I do this:</p>
  
  <pre><code>function: initialize() {
      this.subView = new subView({model:this.model});
  }
  </code></pre>
  
  <p>And the code that changes the model in subView is this:</p>
  
  <pre><code>function: setCurrency() {
      this.model.set({ currency: this.$('.currency').val() });
  }
  </code></pre>
  
  <p>Maybe I am doing something completely wrong here?</p>