script: make builtin script use parent locals
This commit is contained in:
parent
8cdca7df08
commit
fab0ed0eab
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class Script extends Widget {
|
|||
|
||||
this.scriptLock = true
|
||||
try {
|
||||
this.script(context, this.parsersLocalScope)
|
||||
this.script(context, this.builtIn ? this.parent.parsersLocalScope : this.parsersLocalScope)
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue