title: Setter in Javascript + BackBone is this the right way?
body: <p>I got this "object"</p>
  
  <pre><code>Person = Backbone.Model.extend({
      defaults: {
          name: 'Fetus',
          age: 0,
          children: []
      },
      initialize: function() {
          this.bind("change:name", function() {
              var name = this.get("name");
              alert("Changed my name to " + name);
          });
      },
      adopt: function(newChildsName) {
          this.get("children").push(newChildsName);
      },
      setName: function(name) {
          this.set({
              name: name
          });
      }
  });
  </code></pre>
  
  <p>Can't the set method <code>setName</code> be done like this :
  I tried but they don't work</p>
  
  <pre><code>setName: function(name){
    this.get(name) = name;
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>setName: function(name){
    this[name].set(name);
  }
  </code></pre>
  
  <p>Is there another way ? I can't go around thinking the original way is too ugly to use.</p>