title: Getting each model from a Backbone Collection
body: <p>I'm convinced this is a very easy fix, but none of the posts I've found so far seem to have addressed this directly: how do I loop over a collection to get each model?</p>
  
  <p>The first method I'm trying to use is underscore's each method. Here is my call and function:</p>
  
  <pre><code>collection_var.each(paintThings);
  </code></pre>
  
  <p>and here is my function:</p>
  
  <pre><code>function paintThings() {
          console.log(this);
          console.log(this.model);
              var thing_type = this.model.get("type"),
                  thing_other = this.model.get("otherAttribute");
  
                  console.log(this.model);
                  console.log(thing_type);
                  console.log(thing_other);
          }
  </code></pre>
  
  <p>Right now, this comes out as undefined, and this.model errors:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'model' of undefined 
  </code></pre>
  
  <p>I know the answer is simple, but it's driving me crazy! I'm new to underscore. Can anyone here help? I'm also open to other non-underscore methods if they are faster/better.</p>
  
  <p>I also tried this:</p>
  
  <pre><code> for (var i = 0, l = collection_var.length; i &lt; l; i++) {
              console.log(collection_var[i]);
   }
  </code></pre>
  
  <p>but that's not giving me what I want either.</p>