|
|
@@ -163,7 +163,7 @@ function changeItem( batch, doc, key, value, item ) {
|
|
|
range = new Range( Position.createBefore( item ), Position.createAfter( item ) );
|
|
|
}
|
|
|
|
|
|
- operation = new AttributeOperation( range, key, previousValue || null, value || null, doc.version );
|
|
|
+ operation = new AttributeOperation( range, key, previousValue, value, doc.version );
|
|
|
}
|
|
|
|
|
|
delta.addOperation( operation );
|
|
|
@@ -214,7 +214,7 @@ function changeRange( batch, doc, attributeKey, attributeValue, range ) {
|
|
|
|
|
|
function addOperation() {
|
|
|
let range = new Range( lastSplitPosition, position );
|
|
|
- const operation = new AttributeOperation( range, attributeKey, attributeValueBefore || null, attributeValue || null, doc.version );
|
|
|
+ const operation = new AttributeOperation( range, attributeKey, attributeValueBefore, attributeValue, doc.version );
|
|
|
|
|
|
delta.addOperation( operation );
|
|
|
doc.applyOperation( operation );
|