##// END OF EJS Templates
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made...
* tsx/{Xxx}Context renamed to tsx/{Xxx}Rendition, for old types made compatibility stubs with @deprected comments * Improved handling of functional component output, added support for boolean, null, undefined and widgets. * RenditionBase: fixed startup for the DocumentFragment nodes * startupWidgets: fixed startup of the widget when passed domNode of the widget. * DjxFragment converted to the functional component

File last commit:

r2:8ec37bf1b4d1 default
r63:1a0018655d1c v1.1.0 default
Show More
unload.d.ts
33 lines | 1.2 KiB | video/mp2t | TypeScriptLexer
import { GenericObject } from "../interfaces";
interface Unload {
/**
* Registers a function to be triggered when window.onunload fires.
* Deprecated, use on(window, "unload", lang.hitch(obj, functionName)) instead.
*/
addOnWindowUnload(obj: GenericObject | Function, functionName?: string | Function): void;
/**
* Registers a function to be triggered when the page unloads.
* Deprecated, use on(window, "beforeunload", lang.hitch(obj, functionName))
*/
addOnUnload(obj: GenericObject | Function, functionName?: string | Function): void;
}
declare module "./kernel" {
interface Dojo {
/**
* Registers a function to be triggered when window.onunload fires.
* Deprecated, use on(window, "unload", lang.hitch(obj, functionName)) instead.
*/
addOnWindowUnload(obj: GenericObject | Function, functionName?: string | Function): void;
/**
* Registers a function to be triggered when the page unloads.
* Deprecated, use on(window, "beforeunload", lang.hitch(obj, functionName))
*/
addOnUnload(obj: GenericObject | Function, functionName?: string | Function): void;
}
}
declare const Unload: Unload;
export = Unload;