The disposed() method returns true if the Navigator component has already been disposed using the dispose() method.
DayPilot.Navigator.disposed()This method has no parameters.
Returns true when the component has been disposed; otherwise returns false.
if (nav.disposed()) {
return;
}