script: setTimeout and clearTimeout should return an id
This commit is contained in:
parent
52ecafd04b
commit
e8ce280308
1 changed files with 4 additions and 0 deletions
|
|
@ -370,6 +370,8 @@ class ScriptVm extends Vm {
|
|||
this.setValueOptions()
|
||||
}, timeout)
|
||||
|
||||
return id
|
||||
|
||||
}
|
||||
|
||||
this.sandbox.contentWindow.clearTimeout = (id)=>{
|
||||
|
|
@ -412,6 +414,8 @@ class ScriptVm extends Vm {
|
|||
this.setValueOptions()
|
||||
}, timeout)
|
||||
|
||||
return id
|
||||
|
||||
}
|
||||
|
||||
this.sandbox.contentWindow.clearInterval = (id)=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue