Before that commits the "loginwindow exitHandler ()" removed the loadStop
listener, but the listener loadStop had not been created before. Therefore,
causing an exception. To fix this I created a listener to the event within
loadStop inside condition "if (running Cordova)". Also created a function
loginwindow_loadStopHandler , which is executed when the loadStop event is
called.
Before that commits the "loginwindow exitHandler ()" removed the loadStop listener, but the listener loadStop had not been created before. Therefore, causing an exception. To fix this I created a listener to the event within loadStop inside condition "if (running Cordova)". Also created a function loginwindow_loadStopHandler , which is executed when the loadStop event is called.