diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-09 02:31:19 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-09 02:31:19 -0400 |
commit | df170f53e2c88bd77a552e42b2eba5470b15cb03 (patch) | |
tree | 1d7b375e255c3dfe4b08eb6646c81fdae82c4ecb /src/client/views/ScriptBox.tsx | |
parent | 6cc17bfccef7ec0e2ec25706c1f27ee56ca2fc5b (diff) |
cleaned up some scriptingBox code -- added parameters
Diffstat (limited to 'src/client/views/ScriptBox.tsx')
-rw-r--r-- | src/client/views/ScriptBox.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/ScriptBox.tsx b/src/client/views/ScriptBox.tsx index 0352ddaca..6735a8b54 100644 --- a/src/client/views/ScriptBox.tsx +++ b/src/client/views/ScriptBox.tsx @@ -43,9 +43,7 @@ export class ScriptBox extends React.Component<ScriptBoxProps> { overlayDisposer?: () => void; onFocus = () => { - if (this.overlayDisposer) { - this.overlayDisposer(); - } + this.overlayDisposer?.(); this.overlayDisposer = OverlayView.Instance.addElement(<DocumentIconContainer />, { x: 0, y: 0 }); } |