Skip to content

Commit e437d72

Browse files
committed
1 parent de053d5 commit e437d72

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

js/module/array2d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
136136
processStep: function (step, options) {
137137
switch (step.type) {
138138
case 'notify':
139-
if (step.v === 0 || step.v) {
139+
if (step.v !== undefined) {
140140
var $row = this.$table.find('.mtbl-row').eq(step.x);
141141
var $col = $row.find('.mtbl-col').eq(step.y);
142142
$col.text(refineByType(step.v));

js/module/chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ChartTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
7575
processStep: function (step, options) {
7676
switch (step.type) {
7777
case 'notify':
78-
if (step.v) {
78+
if (step.v !== undefined) {
7979
this.chart.config.data.datasets[0].data[step.s] = step.v;
8080
this.chart.config.data.labels[step.s] = step.v.toString();
8181
}

public/algorithm_visualizer.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)