AmpersandJS / ampersand-view

A smart base view for Backbone apps, to make it easy to bind collections and properties to the DOM.
http://ampersandjs.com
MIT License
92 stars 39 forks source link

_downsertBindings needs to clear the _subviews array #182

Closed DoomyTheFroomy closed 6 years ago

DoomyTheFroomy commented 7 years ago

The _upsertBindings function initialize on each call the _subviews array, based on the view.subviews. If you are using an ampersand-view-switcher for example to handle this kind of view, you will recognize that the _subiews array becomes bigger and bigger. This causes that the subviews are initialize and render more than once (eachampersand-view-switcher call).