When calling unbind(this), I fixed a bug due to a missing 'else' where even if the view had a model, if the model was also part of a collection, all other collection models would be unbound. I don't think this is the correct behavior since different views that are concurrently showing may decide to change which model they are displaying. Without this fix, if one view did an unbind(), retrieved a new model, and then called bind(), then any other views would be unbound as well!
fixed model unbind when model is also part of a collection of which o…
…ther models have binding
Hi there - happy new years!
Wanted to check in with you in case you have a chance to review this pull request. I just got bit by incorporating the unpatched 0.9.0 into my project and debugging the same issue that I created this pull request for :)
Thanks. Merged in 0.9.1