提交 609ceea7 编写于 作者: J Jason Park

fix array1d and 2d (2)

上级 59869d49
......@@ -109,7 +109,6 @@
<script src="js/ace/ace.js"></script>
<script src="js/module/tracer.js"></script>
<script src="js/module/directed_graph.js"></script>
<script src="js/module/undirected_graph.js"></script>
<script src="js/module/weighted_directed_graph.js"></script>
<script src="js/module/array2d.js"></script>
<script src="js/module/array1d.js"></script>
......
......@@ -152,6 +152,8 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
this.pushStep(step, type == 'select');
},
processStep: function (step, options) {
var tracer = this;
switch (step.type) {
case 'notifying':
var $row = $table.find('.mtbl-row').eq(step.x);
......@@ -165,7 +167,7 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
step.coords.forEach(function (coord) {
var x = coord.x;
var y = coord.y;
this.paintColor(x, y, x, y, colorClass, addClass);
tracer.paintColor(x, y, x, y, colorClass, addClass);
});
} else {
var sx = step.sx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册