Release v5.24.7
This commit is contained in:
parent
4d7bb3c6e3
commit
b45993ccd5
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
https://github.com/josdejong/jsoneditor
|
https://github.com/josdejong/jsoneditor
|
||||||
|
|
||||||
## not yet released, version 5.24.7
|
|
||||||
|
## 2018-10-08, version 5.24.7
|
||||||
|
|
||||||
- Fix #582: parse error annotations not always up to date in
|
- Fix #582: parse error annotations not always up to date in
|
||||||
code editor.
|
code editor. Thanks @meirotstein.
|
||||||
|
|
||||||
|
|
||||||
## 2018-09-12, version 5.24.6
|
## 2018-09-12, version 5.24.6
|
||||||
|
|
|
@ -24,8 +24,8 @@
|
||||||
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version 5.24.6
|
* @version 5.24.7
|
||||||
* @date 2018-09-12
|
* @date 2018-10-08
|
||||||
*/
|
*/
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -17702,8 +17702,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* refresh ERROR annotations state
|
||||||
|
* error annotations are handled by the ace json mode (ace/mode/json)
|
||||||
|
* validation annotations are handled by this mode
|
||||||
|
* therefore in order to refresh we send only the annotations of error type in order to maintain its state
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
textmode._refreshAnnotations = function () {
|
textmode._refreshAnnotations = function () {
|
||||||
this.aceEditor && this.aceEditor.getSession().setAnnotations();
|
var session = this.aceEditor && this.aceEditor.getSession();
|
||||||
|
if (session) {
|
||||||
|
var errEnnotations = session.getAnnotations().filter(function(annotation) {return annotation.type === 'error' });
|
||||||
|
session.setAnnotations(errEnnotations);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -24,8 +24,8 @@
|
||||||
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
* Copyright (c) 2011-2017 Jos de Jong, http://jsoneditoronline.org
|
||||||
*
|
*
|
||||||
* @author Jos de Jong, <wjosdejong@gmail.com>
|
* @author Jos de Jong, <wjosdejong@gmail.com>
|
||||||
* @version 5.24.6
|
* @version 5.24.7
|
||||||
* @date 2018-09-12
|
* @date 2018-10-08
|
||||||
*/
|
*/
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
@ -46344,8 +46344,19 @@ return /******/ (function(modules) { // webpackBootstrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* refresh ERROR annotations state
|
||||||
|
* error annotations are handled by the ace json mode (ace/mode/json)
|
||||||
|
* validation annotations are handled by this mode
|
||||||
|
* therefore in order to refresh we send only the annotations of error type in order to maintain its state
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
textmode._refreshAnnotations = function () {
|
textmode._refreshAnnotations = function () {
|
||||||
this.aceEditor && this.aceEditor.getSession().setAnnotations();
|
var session = this.aceEditor && this.aceEditor.getSession();
|
||||||
|
if (session) {
|
||||||
|
var errEnnotations = session.getAnnotations().filter(function(annotation) {return annotation.type === 'error' });
|
||||||
|
session.setAnnotations(errEnnotations);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "jsoneditor",
|
"name": "jsoneditor",
|
||||||
"version": "5.24.6",
|
"version": "5.24.7",
|
||||||
"main": "./index",
|
"main": "./index",
|
||||||
"description": "A web-based tool to view, edit, format, and validate JSON",
|
"description": "A web-based tool to view, edit, format, and validate JSON",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|
Loading…
Reference in New Issue