mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Add extra check to loop.
This commit is contained in:
parent
691058e071
commit
92645f1c0f
2 changed files with 3 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
@ -771,10 +771,9 @@
|
|||
var start = range.getStartBlock(),
|
||||
end = range.getEndBlock();
|
||||
if ( start && end ) {
|
||||
while ( true ) {
|
||||
do {
|
||||
if ( fn( start ) || start === end ) { break; }
|
||||
start = start.getNextBlock();
|
||||
}
|
||||
} while ( start = start.getNextBlock() );
|
||||
}
|
||||
|
||||
if ( mutates ) {
|
||||
|
|
Loading…
Reference in a new issue