mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite
This commit is contained in:
commit
87c05a587c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue