mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Merge pull request #254 from Stebalien/fix-nulls
Never pass null as root.
This commit is contained in:
commit
1340c18113
3 changed files with 4 additions and 4 deletions
|
@ -4157,7 +4157,7 @@ proto.insertHTML = function ( html, isPaste ) {
|
||||||
|
|
||||||
addLinks( frag, frag, this );
|
addLinks( frag, frag, this );
|
||||||
cleanTree( frag );
|
cleanTree( frag );
|
||||||
cleanupBRs( frag, null );
|
cleanupBRs( frag, root );
|
||||||
removeEmptyInlines( frag );
|
removeEmptyInlines( frag );
|
||||||
frag.normalize();
|
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 );
|
addLinks( frag, frag, this );
|
||||||
cleanTree( frag );
|
cleanTree( frag );
|
||||||
cleanupBRs( frag, null );
|
cleanupBRs( frag, root );
|
||||||
removeEmptyInlines( frag );
|
removeEmptyInlines( frag );
|
||||||
frag.normalize();
|
frag.normalize();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue