From 6832ca23d666f189e646d2ec60fe95bd2d1aa9f6 Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Wed, 21 Jan 2015 20:12:08 +1100 Subject: Remove read of "top" property (always undefined) --- js/lib/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 476eb28..279fa54 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -553,7 +553,7 @@ var incorporateLine = function(ln) { // parent of the closed block. var finalize = function(block, lineNumber) { var pos; - var above = block._parent || this.top; + var above = block._parent; // don't do anything if the block is already closed if (!block._open) { return 0; -- cgit v1.2.3