mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Fix broken variable reference
This commit is contained in:
parent
833d7dfdbd
commit
c5be1b79dc
3 changed files with 5 additions and 3 deletions
|
@ -3919,6 +3919,7 @@ proto.increaseListLevel = function ( range ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var root = this._root;
|
||||||
var listSelection = getListSelection( range, root );
|
var listSelection = getListSelection( range, root );
|
||||||
if ( !listSelection ) {
|
if ( !listSelection ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
|
@ -3949,7 +3950,7 @@ proto.increaseListLevel = function ( range ) {
|
||||||
} while ( ( startLi = next ) );
|
} while ( ( startLi = next ) );
|
||||||
next = newParent.nextSibling;
|
next = newParent.nextSibling;
|
||||||
if ( next ) {
|
if ( next ) {
|
||||||
mergeContainers( next, this._root );
|
mergeContainers( next, root );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore selection
|
// Restore selection
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1485,6 +1485,7 @@ proto.increaseListLevel = function ( range ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var root = this._root;
|
||||||
var listSelection = getListSelection( range, root );
|
var listSelection = getListSelection( range, root );
|
||||||
if ( !listSelection ) {
|
if ( !listSelection ) {
|
||||||
return this.focus();
|
return this.focus();
|
||||||
|
@ -1515,7 +1516,7 @@ proto.increaseListLevel = function ( range ) {
|
||||||
} while ( ( startLi = next ) );
|
} while ( ( startLi = next ) );
|
||||||
next = newParent.nextSibling;
|
next = newParent.nextSibling;
|
||||||
if ( next ) {
|
if ( next ) {
|
||||||
mergeContainers( next, this._root );
|
mergeContainers( next, root );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restore selection
|
// Restore selection
|
||||||
|
|
Loading…
Reference in a new issue