Open hampelm opened 9 years ago
return this
is the convention documented in the Backbone docs: http://backbonejs.org/#View-render
It also encourages us to work with the View as the primary object rather than the DOM, since we ideally shouldn't be doing a lot of cross-view DOM manipulation.
Many use
return this
, and a number usereturn this.$el
. The former is more flexible. I could argue thatthis.$el
is more consistent with what we'd expect fromrender
.