From 5d849a1f8201a264e3837e1e7bf7b357c8e398d0 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 24 Jun 2016 14:29:52 +0200 Subject: [PATCH] fix asmview --- src/ASMCode.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ASMCode.js b/src/ASMCode.js index d9be836ea6..496b505675 100644 --- a/src/ASMCode.js +++ b/src/ASMCode.js @@ -15,12 +15,15 @@ function ASMCode (_parent, _traceManager, _web3) { } ASMCode.prototype.render = function () { - this.view = ( + var view = ( yo`` ) - return this.view + if (!this.view) { + this.view = view + } + return view } ASMCode.prototype.init = function () { @@ -40,7 +43,6 @@ ASMCode.prototype.indexChanged = function (index) { ASMCode.prototype.codeChanged = function (code, address, index) { this.code = code this.address = address - this.instructionIndex = index this.renderAssemblyItems() yo.update(this.view, this.render()) document.getElementById('asmitems').value = index