diff --git a/modules/ve2/dm/ve.dm.TransactionProcessor.js b/modules/ve2/dm/ve.dm.TransactionProcessor.js index f6364dba97..d62c511912 100644 --- a/modules/ve2/dm/ve.dm.TransactionProcessor.js +++ b/modules/ve2/dm/ve.dm.TransactionProcessor.js @@ -129,7 +129,7 @@ ve.dm.TransactionProcessor.prototype.applyAnnotations = function( to ) { delete annotations[hash]; } // Auto initialize/cleanup - if ( ve.isPlainObject( annotations ) && !annotated ) { + if ( !ve.isEmptyObject( annotations ) && !annotated ) { if ( element ) { // Initialize new element annotation item.annotations = annotations;