aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-17 21:21:46 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-17 21:21:46 -0400
commit4b903aea15529fe441bcb8189076b99e79542a23 (patch)
tree0945c4db03c7efd203ed02dcb3edaccd72119d41
parent95e181a300f0370968430d5e7c4f30ddd7ce38e1 (diff)
oops broken space (forgot a let)
-rw-r--r--space.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/space.js b/space.js
index b0ffce9..2e19a1e 100644
--- a/space.js
+++ b/space.js
@@ -184,7 +184,7 @@ class Space{
subsection(range){ // range is a coordinate pair
if (range.length !== 2 || range[0].length !== 2) throw "not subsecting a coord pair";
// Similarly excludes this.loc
- newspace = new Space();
+ let newspace = new Space();
for (let line=range[0][0]; line<range[1][0]; line++){
newspace.data.push([]);
let thisline = this.data[line] || [];