Commit 4b3d06b0 authored by LianaHus's avatar LianaHus Committed by ioedeveloper

remove highlights on unload

parent f371e3e7
...@@ -61,7 +61,8 @@ class DebuggerTab extends ViewPlugin { ...@@ -61,7 +61,8 @@ class DebuggerTab extends ViewPlugin {
(address, receipt) => { (address, receipt) => {
const target = (address && remixLib.helpers.trace.isContractCreation(address)) ? receipt.contractAddress : address const target = (address && remixLib.helpers.trace.isContractCreation(address)) ? receipt.contractAddress : address
return this.call('fetchAndCompile', 'resolve', target || receipt.contractAddress || receipt.to, '.debug', this.blockchain.web3()) return this.call('fetchAndCompile', 'resolve', target || receipt.contractAddress || receipt.to, '.debug', this.blockchain.web3())
}) }
)
this.call('manager', 'activatePlugin', 'source-verification') this.call('manager', 'activatePlugin', 'source-verification')
// this.call('manager', 'activatePlugin', 'udapp') // this.call('manager', 'activatePlugin', 'udapp')
...@@ -69,6 +70,11 @@ class DebuggerTab extends ViewPlugin { ...@@ -69,6 +70,11 @@ class DebuggerTab extends ViewPlugin {
return this.el return this.el
} }
deactivate () {
this.debuggerUI.unLoad()
super.deactivate()
}
debug (hash) { debug (hash) {
if (this.debuggerUI) this.debuggerUI.debug(hash) if (this.debuggerUI) this.debuggerUI.debug(hash)
} }
......
...@@ -206,7 +206,8 @@ class DebuggerUI { ...@@ -206,7 +206,8 @@ class DebuggerUI {
return view return view
} }
unLoad () { async unLoad () {
await this.debuggerModule.call('editor', 'discardHighlight')
yo.update(this.debuggerHeadPanelsView, yo`<div></div>`) yo.update(this.debuggerHeadPanelsView, yo`<div></div>`)
yo.update(this.debuggerPanelsView, yo`<div></div>`) yo.update(this.debuggerPanelsView, yo`<div></div>`)
yo.update(this.stepManagerView, yo`<div></div>`) yo.update(this.stepManagerView, yo`<div></div>`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment