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

Never pass null as root.

This commit is contained in:
Steven Allen 2016-12-08 13:11:52 -08:00
parent 32e84052c1
commit 9dcac8c94e
3 changed files with 4 additions and 4 deletions

View file

@ -4157,7 +4157,7 @@ proto.insertHTML = function ( html, isPaste ) {
addLinks( frag, frag, this );
cleanTree( frag );
cleanupBRs( frag, null );
cleanupBRs( frag, root );
removeEmptyInlines( frag );
frag.normalize();

File diff suppressed because one or more lines are too long

View file

@ -1763,7 +1763,7 @@ proto.insertHTML = function ( html, isPaste ) {
addLinks( frag, frag, this );
cleanTree( frag );
cleanupBRs( frag, null );
cleanupBRs( frag, root );
removeEmptyInlines( frag );
frag.normalize();