title: ternary operation inside object creation
body: <p>I have a traditional conditional statement below, and I was wondering if I could translate this into an inline conditional(ternary?) statement.</p>
  
  <pre><code>var type;
  
  if type === 1 {
  
      $('#form1').append(new mySuperObject({ model: myModelB}).render().$el);
  
  } else {
  
  
      $('#form1').append(new mySuperObject({ model: new myModelA({ type: myType.Gas }) }).render().$el);
  
  }
  </code></pre>
  
  <p>Would this be the proper format?</p>
  
  <pre><code>$('#form1').append(new mySuperObject({ model: ((type === 1) ? myModelB : new myModelA({ type: myType.Gas) }) }).render().$el);
  </code></pre>
  
  <p>When I try it, I get the error below in Firebug console:</p>
  
  <pre><code>TypeError: this.model.get(...) is undefined
  </code></pre>
  
  <p>Thanks</p>