lib/dhtmlxVault/codebase/vault.js
// asSub means this was called from a sub-routine, so don't drain did* hook queue
asSub means this was called from a sub-routine, so don't drain did* hook queue
asSub means this was called from a sub - routine so don ' t drain did * hook queue
function unmount(asSub) {
	var vm = this;
	var node = vm.node;
	var parEl = node.el.parentNode;
	removeChild(parEl, node.el);
	if (!asSub)
		{ drainDidHooks(vm); }
}
function unmount ( asSub ) { var vm = this ; var node = vm . node ; var parEl = node . el . parentNode ; removeChild ( parEl , node . el ) ; if ( ! asSub ) { drainDidHooks ( vm ) ; } }
asSub means this was called from a sub-routine, so don't drain did* hook queue
asSub means this was called from a sub - routine so don ' t drain did * hook queue
// edge bug: this could also be willRemove promise-delayed; should .then() or something to make sure hooks fire in order