This commit is contained in:
Meir Rotstein 2017-12-21 13:50:33 +02:00
parent ed030c0518
commit 91f763b9b9
2 changed files with 12 additions and 12 deletions

12
dist/jsoneditor.js vendored
View File

@ -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;

View File

@ -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;