aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-17 11:59:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-17 11:59:50 -0800
commit94fe2650b080b9511d7fbe7f64c02326e90d319a (patch)
tree33977dc78ea9977fc9859345d14acfa92666d04e
parentc2e76eae80bb635557ff87e36334cc5ce67e10dc (diff)
Minor code cleanup.
-rw-r--r--js/lib/blocks.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index c70af15..d4f6790 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -257,10 +257,7 @@ var incorporateLine = function(ln) {
// Bail out on failure: container will point to the last matching block.
// Set all_matched to false if not all containers match.
var lastChild;
- while ((lastChild = container._lastChild)) {
- if (!lastChild._open) {
- break;
- }
+ while ((lastChild = container._lastChild) && lastChild._open) {
container = lastChild;
match = matchAt(reNonSpace, ln, offset);