From 94fe2650b080b9511d7fbe7f64c02326e90d319a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 17 Jan 2015 11:59:50 -0800 Subject: Minor code cleanup. --- js/lib/blocks.js | 5 +---- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3