Check documentation for the latest version of dhtmlxSuite unload DHTMLX Docs

unload

destructor

void unload();

Example

var myVault = new dhtmlXVaultObject(...);
 
function doOnWindowUnload() {
    // some other code here
    ...
 
    // unloading vault
    myVault.unload();
    myVault = null;
}
 
if (typeof(window.addEventListener) == "function") {
    window.addEventListener("unload", doOnWindowUnload, false);
} else {
    window.attachEvent("onunload", doOnWindowUnload);
}

Details

This API page is for Vault v2.5. Please go to docs.dhtmlx.com/vault/ to see API reference for the current version of dhtmlxVault.

If Vault is attached to any DHTMLX component, it will be unloaded automatically when the parent component is unloaded.

Change log

added in version 2.0

Back to top