Skip to content

Commit ea311e1

Browse files
author
Walter Bender
committed
misplaced that = this
1 parent 14fa1b5 commit ea311e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/blocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ function Blocks () {
453453
var secondArgumentSize = Math.max(this._getBlockSize(c), 1);
454454
}
455455

456+
var that = this;
457+
456458
var vSpaceCount = howManyVSpaceBlocksBelow(blk);
457459
if (secondArgumentSize < vSpaceCount + 1) {
458460
// Remove a vspace block
@@ -507,8 +509,6 @@ function Blocks () {
507509
this._makeNewBlockWithConnections('vspace', newPos, [null, null], vspaceAdjuster, [thisBlock, nextBlock, newPos, 0, n]);
508510
};
509511

510-
var that = this;
511-
512512
function howManyVSpaceBlocksBelow(blk) {
513513
// Need to know how many vspace blocks are below the block
514514
// we're checking against.

0 commit comments

Comments
 (0)