Skip to content

Commit cd0e148

Browse files
authored
Fix x is not defined error
1 parent 01b5235 commit cd0e148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jsgraphs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var jsgraphs = jsgraphs || {};
7171

7272
Stack.prototype.toArray = function() {
7373
var result = [];
74-
x = this.first;
74+
var x = this.first;
7575
while (x != null) {
7676
result.push(x.value);
7777
x = x.next;
@@ -1205,4 +1205,4 @@ var jsgraphs = jsgraphs || {};
12051205
var module = module || {};
12061206
if(module) {
12071207
module.exports = jsgraphs;
1208-
}
1208+
}

0 commit comments

Comments
 (0)