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

changeFormat should always return self.

This commit is contained in:
Neil Jenkins 2016-06-07 16:27:04 +10:00
parent 8eea926e2b
commit 048a7296b2
3 changed files with 3 additions and 3 deletions

View file

@ -3401,7 +3401,7 @@ proto._removeFormat = function ( tag, attributes, range, partial ) {
proto.changeFormat = function ( add, remove, range, partial ) {
// Normalise the arguments and get selection
if ( !range && !( range = this.getSelection() ) ) {
return;
return this;
}
// Save undo checkpoint

File diff suppressed because one or more lines are too long

View file

@ -1133,7 +1133,7 @@ proto._removeFormat = function ( tag, attributes, range, partial ) {
proto.changeFormat = function ( add, remove, range, partial ) {
// Normalise the arguments and get selection
if ( !range && !( range = this.getSelection() ) ) {
return;
return this;
}
// Save undo checkpoint