Hello,
I created a project following the same methods as this project to build a scheduler with custom views. The issue I'm running into is that the code
//detach events
destroy:
function
() {
if
(
this
.element) {
this
.element.off(NS);
}
ui.SchedulerView.fn.destroy.call(
this
);
}
never executes when I select another view. Instead, the view stays in place and the view I selected appears below it. If I toggle between my two custom views, they will simply stack. Is there any reason you now of why this might happen? Let me know if I need to upload a project, but it will take time to make it so it can be downloaded and run with minimal changes.
Thanks for your help!