From 8731e794d46c783bdc1e5999e05f1265d111b95b Mon Sep 17 00:00:00 2001 From: Yorick Date: Wed, 1 Jul 2020 03:59:07 +0200 Subject: [PATCH] declare variable --- src/jsgraphs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;