0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00

Merge pull request #254 from Stebalien/fix-nulls

Never pass null as root.
This commit is contained in:
Neil Jenkins 2016-12-09 09:31:00 +11:00 committed by GitHub
commit 1340c18113
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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();