Skip to content

Commit

Permalink
misplaced that = this
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Bender committed Mar 31, 2017
1 parent 14fa1b5 commit ea311e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ea311e1

Please sign in to comment.