Skip to content

Commit 67db2a0

Browse files
committed
Merge pull request algorithm-visualizer#98 from duaraghav8/gh-pages
Bug fix in Array2dTracer _notify ()
2 parents 0d28818 + 9c25c5a commit 67db2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/module/array2d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
130130
processStep: function (step, options) {
131131
switch (step.type) {
132132
case 'notify':
133-
if (step.v) {
133+
if (step.v === 0 || step.v) {
134134
var $row = this.$table.find('.mtbl-row').eq(step.x);
135135
var $col = $row.find('.mtbl-col').eq(step.y);
136136
$col.text(TracerUtil.refineByType(step.v));

0 commit comments

Comments
 (0)