this.isLoaded = false; this.cancel(); try{ this.onUnload.call(this); }catch(e){ console.error('Error '+this.widgetId+' running custom onUnload code'); }