diff --git a/src/jsgraphs.js b/src/jsgraphs.js index 5409240..1174f1b 100644 --- a/src/jsgraphs.js +++ b/src/jsgraphs.js @@ -71,7 +71,7 @@ var jsgraphs = jsgraphs || {}; Stack.prototype.toArray = function() { var result = []; - x = this.first; + var x = this.first; while (x != null) { result.push(x.value); x = x.next;