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:
parent
32e84052c1
commit
9dcac8c94e
3 changed files with 4 additions and 4 deletions
|
@ -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
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue