So I think that this
is being passed as a way to be able to maintain the correct reference to this
which should be to the View. I'm not sure though. Here is the code.
SomeView = Backbone.View.extend({
getView: function(){
return this.modelView;
},
this.collection.each(function(item){
var ViewType = this.getModelView(item);
}, this);
});
So, the last this after the comma is for what? It must be to maintain reference to the correct this but I couldn't find anything that gave a good description of what it was and how it worked. Thanks for any help.