From 91f763b9b9cb05b80e2dd15abbc9bf6caecbe382 Mon Sep 17 00:00:00 2001 From: Meir Rotstein Date: Thu, 21 Dec 2017 13:50:33 +0200 Subject: [PATCH] type+ --- dist/jsoneditor.js | 12 ++++++------ src/js/textmode.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dist/jsoneditor.js b/dist/jsoneditor.js index 52d6662..eeea88f 100644 --- a/dist/jsoneditor.js +++ b/dist/jsoneditor.js @@ -17191,7 +17191,7 @@ return /******/ (function(modules) { // webpackBootstrap */ textmode._onSelect = function () { if(this.options.statusBar) { - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); } }; @@ -17221,7 +17221,7 @@ return /******/ (function(modules) { // webpackBootstrap event.stopPropagation(); } - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); }; /** @@ -17230,7 +17230,7 @@ return /******/ (function(modules) { // webpackBootstrap * @private */ textmode._onMouseDown = function (event) { - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); }; /** @@ -17239,18 +17239,18 @@ return /******/ (function(modules) { // webpackBootstrap * @private */ textmode._onBlur = function (event) { - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); }; /** * Update the status bar cursor info */ - textmode._setCursorInfoDisplay = function () { + textmode._updateCursorInfoDisplay = function () { if(this.options.statusBar) { var me = this; var line, col, count; if (this.textarea) { - setTimeout(function() { //this to varify we get the most updated textarea cursor selection + setTimeout(function() { //this to verify we get the most updated textarea cursor selection var selectionRange = util.getInputSelection(me.textarea); line = selectionRange.row; col = selectionRange.col; diff --git a/src/js/textmode.js b/src/js/textmode.js index 0a3f391..2025a76 100644 --- a/src/js/textmode.js +++ b/src/js/textmode.js @@ -327,7 +327,7 @@ textmode._onChange = function () { */ textmode._onSelect = function () { if(this.options.statusBar) { - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); } }; @@ -357,7 +357,7 @@ textmode._onKeyDown = function (event) { event.stopPropagation(); } - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); }; /** @@ -366,7 +366,7 @@ textmode._onKeyDown = function (event) { * @private */ textmode._onMouseDown = function (event) { - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); }; /** @@ -375,18 +375,18 @@ textmode._onMouseDown = function (event) { * @private */ textmode._onBlur = function (event) { - this._setCursorInfoDisplay(); + this._updateCursorInfoDisplay(); }; /** * Update the status bar cursor info */ -textmode._setCursorInfoDisplay = function () { +textmode._updateCursorInfoDisplay = function () { if(this.options.statusBar) { var me = this; var line, col, count; if (this.textarea) { - setTimeout(function() { //this to varify we get the most updated textarea cursor selection + setTimeout(function() { //this to verify we get the most updated textarea cursor selection var selectionRange = util.getInputSelection(me.textarea); line = selectionRange.row; col = selectionRange.col;