I've got a backbone calendar, and each day has a bunch of options. The user only sees one day at a time.
So when the user selects to go to the next or previous day, I call the MyApp.Views.ShowDay
to redraw the day.
the ShowDay
view calls a few sub-views MyApp.Views.Hours
.
I need to unbind the hours from the old day when I create a new day, but that is causing nothing but errors.
The way I'm trying to do it is
MyApp.Views.Showday = Backbone.View.extend({ events: { "click div.change_day":"change_day" }, change_day: function(){ MyApp.Views.Hours.unbind(); //I've tried off(), off, remove() as well } });
Is this not the way to unbind children?