aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-21 09:06:59 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-21 09:06:59 -0800
commitc9bd3cbb3fbab9e9e3b3aa928f317508fafa8012 (patch)
tree89573ded7d11ab8bd0747845d43513ad1b484f9b /js
parent56b934526e9fdfdf26adc40f57b7edb885d54e5c (diff)
parent6832ca23d666f189e646d2ec60fe95bd2d1aa9f6 (diff)
Merge pull request #292 from robinst/top-property-access
Remove read of "top" property (always undefined)
Diffstat (limited to 'js')
-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 b3b1a3b..8aeb95c 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -552,7 +552,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;