Echo JS 0.11.0

<~>

mxxx 3603 days ago. link 1 point
The event listeners in the example code are a bad pattern, namely the use of 'bind' without a matching 'unbind'. 

When binding callbacks on a View to events on a Model/Collection, it's preferable to use .listenTo(), since all bindings that are listenTo'd are unbound on View.remove().


Also if you are bind()ing directly, i'd be inclined to use on(), seeing as that's the method listed in the docs (bind is simply an alias of on).