title: Backbone each undefined
body: <p>Why is the item variable undefined in this Backbone example?</p>
  
  <pre><code>var Action = Backbone.Model.extend({
  defaults: {
      "selected": false,
      "name": "First Action",
      "targetDate": "10-04-2014"
  }
  });
  
  var Actions = Backbone.Collection.extend({
      model: Action
  });
  
  var actionCollection = new Actions( [new Action(), new Action(), new Action(), new Action()]);
  
  _.each(actionCollection, function(item) {
      alert(item);
  });
  </code></pre>
  
  <p>jsFiddle here: <a href="http://jsfiddle.net/netroworx/KLYL9/" rel="nofollow">http://jsfiddle.net/netroworx/KLYL9/</a></p>