destructor
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);
}
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.
added in version 2.0
Back to top