summaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2015-01-21 20:12:08 +1100
committerRobin Stocker <robin@nibor.org>2015-01-21 20:12:08 +1100
commit6832ca23d666f189e646d2ec60fe95bd2d1aa9f6 (patch)
treec780e84792c36ceb4e1b0a1c6a8cfc7e7e1d52a9 /js/lib
parent84d48648f0a203befd666aa0c7dad32fa1a22710 (diff)
Remove read of "top" property (always undefined)
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/blocks.js2
1 files changed, 1 insertions, 1 deletions
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;