Merge branch 'dmrewrite' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor into dmrewrite

This commit is contained in:
Rob Moen 2012-05-14 17:23:06 -07:00
commit 87c05a587c

View file

@ -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;