break on border loops when possible.
This commit is contained in:
parent
9105c80eb7
commit
1c048e6061
|
@ -3906,7 +3906,7 @@ Element.prototype.render = function() {
|
|||
y = yi;
|
||||
if (coords.notop) y = -1;
|
||||
for (x = xi; x < xl; x++) {
|
||||
if (!lines[y]) continue;
|
||||
if (!lines[y]) break;
|
||||
if (coords.noleft && x === xi) continue;
|
||||
if (coords.noright && x === xl - 1) continue;
|
||||
cell = lines[y][x];
|
||||
|
@ -4038,7 +4038,7 @@ Element.prototype.render = function() {
|
|||
y = yl - 1;
|
||||
if (coords.nobot) y = -1;
|
||||
for (x = xi; x < xl; x++) {
|
||||
if (!lines[y]) continue;
|
||||
if (!lines[y]) break;
|
||||
if (coords.noleft && x === xi) continue;
|
||||
if (coords.noright && x === xl - 1) continue;
|
||||
cell = lines[y][x];
|
||||
|
|
Loading…
Reference in New Issue