From 3ec43b913f66cfbfde1c8df45c193cf15b11d479 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Wed, 25 Jul 2018 09:18:52 -0400 Subject: [PATCH] :eyes: --- src/text-editor-component.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 7c66f6f6a..8c4e7f17f 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -3364,10 +3364,10 @@ class LineNumberGutterComponent { if (this.props.onMouseDown == null) { this.props.rootComponent.didMouseDownOnLineNumberGutter(event) } else { - const {bufferRowStr, screenRowStr} = event.target.dataset + const {bufferRow, screenRow} = event.target.dataset this.props.onMouseDown({ - bufferRow: parseInt(bufferRowStr, 10), - screenRow: parseInt(screenRowStr, 10), + bufferRow: parseInt(bufferRow, 10), + screenRow: parseInt(screenRow, 10), domEvent: event }) } @@ -3375,10 +3375,10 @@ class LineNumberGutterComponent { didMouseMove (event) { if (this.props.onMouseMove != null) { - const {bufferRowStr, screenRowStr} = event.target.dataset + const {bufferRow, screenRow} = event.target.dataset this.props.onMouseMove({ - bufferRow: parseInt(bufferRowStr, 10), - screenRow: parseInt(screenRowStr, 10), + bufferRow: parseInt(bufferRow, 10), + screenRow: parseInt(screenRow, 10), domEvent: event }) }