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-12-11 12:52:22 +11:00
parent 8d51967645
commit ba4fb64543
2 changed files with 4 additions and 4 deletions

View file

@ -2078,15 +2078,15 @@ var notWSTextNode = function ( node ) {
notWS.test( node.data );
};
var isLineBreak = function ( br ) {
var block = br.parentNode,
walker;
var block = br.parentNode;
var walker;
while ( isInline( block ) ) {
block = block.parentNode;
}
walker = new TreeWalker(
block, SHOW_ELEMENT|SHOW_TEXT, notWSTextNode );
walker.currentNode = br;
return !!walker.nextNode();
return !!walker.nextNode() || !walker.previousNode();
};
// <br> elements are treated specially, and differently depending on the

File diff suppressed because one or more lines are too long