Adopt optional chaining

This commit is contained in:
Daniel Imms
2019-11-05 11:09:47 -08:00
parent 267fbc7f5e
commit 843d5ff53c
4 changed files with 27 additions and 71 deletions
+3 -5
View File
@@ -175,11 +175,9 @@ export class MouseZoneManager extends Disposable implements IMouseZoneManager {
// Find the active zone, prevent event propagation if found to prevent other
// components from handling the mouse event.
const zone = this._findZoneEventAt(e);
if (zone) {
if (zone.willLinkActivate(e)) {
e.preventDefault();
e.stopImmediatePropagation();
}
if (zone?.willLinkActivate(e)) {
e.preventDefault();
e.stopImmediatePropagation();
}
}