mathjs: mute deprecation warning until there's an easy migration tip to provide
This commit is contained in:
parent
7f566c4ac2
commit
a32598f631
1 changed files with 5 additions and 5 deletions
|
|
@ -160,7 +160,7 @@ class Widget extends EventEmitter {
|
|||
}
|
||||
|
||||
this.disabledProps = []
|
||||
this.mathjsDeprecationWarned = false
|
||||
// this.mathjsDeprecationWarned = false
|
||||
|
||||
// cache precision
|
||||
if (this.props.precision != undefined) {
|
||||
|
|
@ -586,10 +586,10 @@ class Widget extends EventEmitter {
|
|||
propValue = propValue.replace(/#\{(?:[^{}]|\{[^{}]*\})*\}/g, (m)=>{
|
||||
// one bracket nesting allowed, if we need two: #\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}
|
||||
|
||||
if (!this.mathjsDeprecationWarned) {
|
||||
this.mathjsDeprecationWarned = true
|
||||
ipc.send('error', `Warning: Widget#${this.getProp('id')} MathJS syntax (#{}) is deprecated and will be removed in the future. Consider using the Javascript syntax instead.`)
|
||||
}
|
||||
// if (!this.mathjsDeprecationWarned) {
|
||||
// this.mathjsDeprecationWarned = true
|
||||
// ipc.send('error', `Warning: Widget#${this.getProp('id')} MathJS syntax (#{}) is deprecated and will be removed in the future. Consider using the Javascript syntax instead.`)
|
||||
// }
|
||||
|
||||
// unescape brackets (not needed anymore, just here for backward compatibility)
|
||||
m = m.replace(/\\(\{|\})/g, '$1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue