From eca68b12587f9f6c2b2203c191b929b05b289ba9 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 15 May 2015 15:14:23 +0200 Subject: [PATCH] small change --- mix/qml/html/codeeditor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mix/qml/html/codeeditor.js b/mix/qml/html/codeeditor.js index d1ecf0380..6499922ae 100644 --- a/mix/qml/html/codeeditor.js +++ b/mix/qml/html/codeeditor.js @@ -283,7 +283,7 @@ function listenMouseOver(e) { if (gasAnnotation) gasAnnotation.clear(); - var cl = getClass(node); + var cl = getGasCostClass(node); var gasTitle = gasMarkRef[cl].value.isInfinite ? "infinite" : gasMarkRef[cl].value.gas; gasTitle = gasTitle + " gas"; gasAnnotation = editor.addLineWidget(gasMarkRef[cl].line + 1, makeGasCostMarker(gasTitle), { coverGutter: false, above: true }); @@ -296,7 +296,7 @@ function listenMouseOver(e) } } -function getClass(node) +function getGasCostClass(node) { var classes = node.className.split(" "); for (var k in classes)