0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-05 06:10:07 -05:00

Fix whitespace errors.

Thanks to @gertsonderby who pointed these out in #138.
This commit is contained in:
Neil Jenkins 2015-09-28 15:48:23 +02:00
parent 0ec3c43791
commit 9461368a5c
3 changed files with 12 additions and 12 deletions

View file

@ -2899,8 +2899,8 @@ proto._addFormat = function ( tag, attributes, range ) {
function ( node ) { function ( node ) {
return ( node.nodeType === TEXT_NODE || return ( node.nodeType === TEXT_NODE ||
node.nodeName === 'BR' || node.nodeName === 'BR' ||
node.nodeName === 'IMG' ) && node.nodeName === 'IMG'
isNodeContainedInRange( range, node, true ); ) && isNodeContainedInRange( range, node, true );
}, },
false false
); );

View file

@ -775,8 +775,8 @@ proto._addFormat = function ( tag, attributes, range ) {
function ( node ) { function ( node ) {
return ( node.nodeType === TEXT_NODE || return ( node.nodeType === TEXT_NODE ||
node.nodeName === 'BR' || node.nodeName === 'BR' ||
node.nodeName === 'IMG' ) && node.nodeName === 'IMG'
isNodeContainedInRange( range, node, true ); ) && isNodeContainedInRange( range, node, true );
}, },
false false
); );