Fix #639: Occurrence of non-ES5 `const` declaration in published code

This commit is contained in:
jos 2019-01-23 14:27:19 +01:00
parent 21ae2180e7
commit cb2f343d1d
2 changed files with 9 additions and 3 deletions

View File

@ -3,11 +3,17 @@
https://github.com/josdejong/jsoneditor
## not yet published, version 5.28.2
- Fix #639: Occurrence of non-ES5 `const` declaration in published code.
Regression introduced in `v5.28.0`.
## 2019-01-22, version 5.28.1
- Fix #637: vertical white border left/right from the main menu in some
- Fix #637: Vertical white border left/right from the main menu in some
specific circumstances.
- Fix #638: cannot expand after collapse. Regression introduced in v5.28.0.
- Fix #638: Cannot expand after collapse. Regression introduced in v5.28.0.
## 2019-01-21, version 5.28.0

View File

@ -925,7 +925,7 @@ Node.prototype._updateCssClassName = function () {
&& typeof this.editor.options.onClassName ==='function'
&& this.dom.tree){
util.removeAllClassNames(this.dom.tree);
const addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || "";
var addClasses = this.editor.options.onClassName({ path: this.getPath(), field: this.field, value: this.value }) || "";
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
}
};