break on border loops when possible.

This commit is contained in:
Christopher Jeffrey 2015-04-04 07:12:01 -07:00
parent 9105c80eb7
commit 1c048e6061
1 changed files with 2 additions and 2 deletions

View File

@ -3906,7 +3906,7 @@ Element.prototype.render = function() {
y = yi; y = yi;
if (coords.notop) y = -1; if (coords.notop) y = -1;
for (x = xi; x < xl; x++) { for (x = xi; x < xl; x++) {
if (!lines[y]) continue; if (!lines[y]) break;
if (coords.noleft && x === xi) continue; if (coords.noleft && x === xi) continue;
if (coords.noright && x === xl - 1) continue; if (coords.noright && x === xl - 1) continue;
cell = lines[y][x]; cell = lines[y][x];
@ -4038,7 +4038,7 @@ Element.prototype.render = function() {
y = yl - 1; y = yl - 1;
if (coords.nobot) y = -1; if (coords.nobot) y = -1;
for (x = xi; x < xl; x++) { for (x = xi; x < xl; x++) {
if (!lines[y]) continue; if (!lines[y]) break;
if (coords.noleft && x === xi) continue; if (coords.noleft && x === xi) continue;
if (coords.noright && x === xl - 1) continue; if (coords.noright && x === xl - 1) continue;
cell = lines[y][x]; cell = lines[y][x];