title: How do I add a custom method to a backbone model?
body: <p>I've tried:</p>
  
  <pre><code>initialize: function() {
      if (this.get("id") == "modelOfInterest") {
  
          var func = function() {
             //do some stuff with the model
           }
           _.bind(func, this)
  
      }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>initialize: function() {
      if (this.get("id") == "modelOfInterest") {
            var func = function() {
              //do some stuff with the model
            }
            this.on("func", func, this);
       }
  }
  </code></pre>
  
  <p>However in both cases:</p>
  
  <pre><code>myModelInstance.func(); //object has no method func
  </code></pre>
  
  <p>I'd prefer not to use <code>_.bindAll()</code>. </p>
  
  <p>I've edited the code above to show that I am trying to bind func to only one model. The model is initialize when it is added to a collection : all the models fire initialize at the same time and I just want to bind func to one of them.</p>