Fix #639: Occurrence of non-ES5 `const` declaration in published code
This commit is contained in:
parent
21ae2180e7
commit
cb2f343d1d
10
HISTORY.md
10
HISTORY.md
|
@ -3,11 +3,17 @@
|
||||||
https://github.com/josdejong/jsoneditor
|
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
|
## 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.
|
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
|
## 2019-01-21, version 5.28.0
|
||||||
|
|
|
@ -925,7 +925,7 @@ Node.prototype._updateCssClassName = function () {
|
||||||
&& typeof this.editor.options.onClassName ==='function'
|
&& typeof this.editor.options.onClassName ==='function'
|
||||||
&& this.dom.tree){
|
&& this.dom.tree){
|
||||||
util.removeAllClassNames(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);
|
util.addClassName(this.dom.tree, "jsoneditor-values " + addClasses);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue