In Backbone.Marionette.js CollectionViews and CompositeViews, the onDomRefresh
event fires when the DOM is initially rendered and ALSO any time that an item is added to the view's collection (this contributes to the dynamic / "live" nature of the views). In my case, I want to run a certain jQuery function, but due to the typical length of the collection, it would be better to only call this function once at the last render to prevent excess function calls to something I only want to do once after all models are rendered in the UI.
Is there a Marionette event with the appropriate timing for this use case?
CompositeView
method would work, but not anitemView
. – Lantha