Setting the collection event add
simply adds another handler to the queue for that event; it doesn't replace any other events so the default marionette behaviour will still occur.
I assume you're calling the create
method on the collection to create your new comment model. If this is the case you simply need to set the silent
option to true. Now the add
event will not fire and Marionette will not create and render the view for that model. You can do it like this:
commentCollection.create(commentModel, {silent: true});
As for you second question about prepending, yes I would override appendHtml
method. Or to keep the method names consistent with what actually happens, create a method called prependHtml
and then override the renderItemView
method to call prependHtml
.