Skip to content

Commit b8f4e8a

Browse files
committed
Fix .cost vs .getCost()
1 parent 56e8e2e commit b8f4e8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ GraphSearch.prototype.animatePath = function(path) {
241241
elementFromNode(path[i]).removeClass(css.active);
242242
setTimeout(function() {
243243
removeClass(path, i+1);
244-
}, timeout*path[i].cost);
244+
}, timeout*path[i].getCost());
245245
};
246246
var setStartClass = function(path, i) {
247247
if(i === path.length) {
@@ -256,7 +256,7 @@ GraphSearch.prototype.animatePath = function(path) {
256256
elementFromNode(path[i]).addClass(css.active);
257257
setTimeout(function() {
258258
addClass(path, i+1);
259-
}, timeout*path[i].cost);
259+
}, timeout*path[i].getCost());
260260
};
261261

262262
addClass(path, 0);

0 commit comments

Comments
 (0)