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;