var $foldedView = $(e.currentTarget);
var foldedViewId = $foldedView.attr('id');
var model = this.collection.get(parseInt(foldedViewId));
I'm debugging this code and foldedViewId has a value of "151140". Now when I look up the this.collection object, I can clearly see that there is a model with an id of 151140.
My problem is that this.collection.get with the foldedViewId (parsed or not) returns undefined....Is there a bug in backbone?