Skip to content

Commit dd84205

Browse files
committed
fix array1d and 2d (2)
1 parent 83cd59f commit dd84205

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ <h3>Reference</h3>
109109
<script src="js/ace/ace.js"></script>
110110
<script src="js/module/tracer.js"></script>
111111
<script src="js/module/directed_graph.js"></script>
112-
<script src="js/module/undirected_graph.js"></script>
113112
<script src="js/module/weighted_directed_graph.js"></script>
114113
<script src="js/module/array2d.js"></script>
115114
<script src="js/module/array1d.js"></script>

js/module/array2d.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
152152
this.pushStep(step, type == 'select');
153153
},
154154
processStep: function (step, options) {
155+
var tracer = this;
156+
155157
switch (step.type) {
156158
case 'notifying':
157159
var $row = $table.find('.mtbl-row').eq(step.x);
@@ -165,7 +167,7 @@ Array2DTracer.prototype = $.extend(true, Object.create(Tracer.prototype), {
165167
step.coords.forEach(function (coord) {
166168
var x = coord.x;
167169
var y = coord.y;
168-
this.paintColor(x, y, x, y, colorClass, addClass);
170+
tracer.paintColor(x, y, x, y, colorClass, addClass);
169171
});
170172
} else {
171173
var sx = step.sx;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy