0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00

Fixed copypasta-mistake, nextSibling -> previousSibling.

This commit is contained in:
Gert Sønderby 2015-10-13 08:39:22 +02:00
parent 49ca521704
commit c40f900b7d
3 changed files with 4 additions and 3 deletions

View file

@ -2813,7 +2813,7 @@ proto.hasFormat = function ( tag, attributes, range ) {
if ( !range.collapsed &&
range.endContainer.nodeType === TEXT_NODE &&
range.endOffset === 0 &&
range.endContainer.nextSibling ) {
range.endContainer.previousSibling ) {
range.setEndAfter( range.endContainer.previousSibling );
}

File diff suppressed because one or more lines are too long

View file

@ -689,7 +689,7 @@ proto.hasFormat = function ( tag, attributes, range ) {
if ( !range.collapsed &&
range.endContainer.nodeType === TEXT_NODE &&
range.endOffset === 0 &&
range.endContainer.nextSibling ) {
range.endContainer.previousSibling ) {
range.setEndAfter( range.endContainer.previousSibling );
}