From ea311e131bf65a96d70ca00ff24b24cc4a28a789 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 31 Mar 2017 10:04:49 -0400 Subject: [PATCH] misplaced that = this --- js/blocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/blocks.js b/js/blocks.js index 5b8f30de0..2e22df469 100644 --- a/js/blocks.js +++ b/js/blocks.js @@ -453,6 +453,8 @@ function Blocks () { var secondArgumentSize = Math.max(this._getBlockSize(c), 1); } + var that = this; + var vSpaceCount = howManyVSpaceBlocksBelow(blk); if (secondArgumentSize < vSpaceCount + 1) { // Remove a vspace block @@ -507,8 +509,6 @@ function Blocks () { this._makeNewBlockWithConnections('vspace', newPos, [null, null], vspaceAdjuster, [thisBlock, nextBlock, newPos, 0, n]); }; - var that = this; - function howManyVSpaceBlocksBelow(blk) { // Need to know how many vspace blocks are below the block // we're checking against.