fix asmview

pull/7/head
yann300 9 years ago
parent 2b4cf97aab
commit 5d849a1f82
  1. 8
      src/ASMCode.js

@ -15,12 +15,15 @@ function ASMCode (_parent, _traceManager, _web3) {
} }
ASMCode.prototype.render = function () { ASMCode.prototype.render = function () {
this.view = ( var view = (
yo`<select size='10' id='asmitems' ref='itemsList' style=${ui.formatCss(style.instructionsList)}> yo`<select size='10' id='asmitems' ref='itemsList' style=${ui.formatCss(style.instructionsList)}>
${this.codeView} ${this.codeView}
</select>` </select>`
) )
return this.view if (!this.view) {
this.view = view
}
return view
} }
ASMCode.prototype.init = function () { ASMCode.prototype.init = function () {
@ -40,7 +43,6 @@ ASMCode.prototype.indexChanged = function (index) {
ASMCode.prototype.codeChanged = function (code, address, index) { ASMCode.prototype.codeChanged = function (code, address, index) {
this.code = code this.code = code
this.address = address this.address = address
this.instructionIndex = index
this.renderAssemblyItems() this.renderAssemblyItems()
yo.update(this.view, this.render()) yo.update(this.view, this.render())
document.getElementById('asmitems').value = index document.getElementById('asmitems').value = index

Loading…
Cancel
Save