Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function asyncDestroy(parent: object, env: Environment) {
if (DEBUG) {
console.log('asyncDestroy', parent, LINKED.get(parent));
}
env.didDestroy(destructor(parent));
}
export function detachChildren(parent: Bounds, env: Environment): Option {
if (DEBUG) {
console.log('asyncClear', parent, LINKED.get(parent));
}
asyncReset(parent, env);
return clear(parent);
}