Create ui project, add Lifecycle

This commit is contained in:
Daniel Imms
2019-04-28 01:55:56 +00:00
parent f4bbfc30f3
commit 672db9437f
3 changed files with 22 additions and 4 deletions
+1 -3
View File
@@ -3,7 +3,7 @@
* @license MIT
*/
import { IDisposable } from 'xterm';
import { IDisposable } from '../common/Types';
/**
* Adds a disposable listener to a node in the DOM, returning the disposable.
@@ -24,8 +24,6 @@ export function addDisposableDomListener(
return;
}
node.removeEventListener(type, handler, useCapture);
node = null;
handler = null;
}
};
}