I want to access View‘s el method inside each iterator of collection.
This is mock up of my problem: http://jsfiddle.net/ASdWU/.
Is it possible?
I need it because I want to iterate over models of collections, create and append their view’s to .el element (I cannot use jQuery’s $() because of has_many relation where each model has its own collection so their css-id is repeated and I cannot select particular id).
Just pass the view (
this) as the third (context) argument to.each():Forked fiddle.