0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Update to latest

This commit is contained in:
Neil Jenkins 2016-05-26 11:43:18 +10:00
parent 8684c2315b
commit f2198ef2d0
2 changed files with 3 additions and 2 deletions

View file

@ -1139,7 +1139,8 @@ var rangeDoesStartAtBlockBoundary = function ( range, root ) {
// The cursor was right at the end of the document
if ( !nodeAfterCursor ) {
nodeAfterCursor = getNodeBefore( startContainer, startOffset );
if ( node.nodeType === TEXT_NODE && node.length ) {
if ( nodeAfterCursor.nodeType === TEXT_NODE &&
nodeAfterCursor.length ) {
return false;
}
}

File diff suppressed because one or more lines are too long