Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/59363


Change subject: Fix annotation breakage
......................................................................

Fix annotation breakage

Inez reported that unitalicizing from the toolbar was broken, because
the toolbar was somehow generating annotations that had .attributes={}
as opposed to .attributes=undefined. Turned out the cause was in the
default value for element in the ve.dm.Model constructor.

Change-Id: I64ea9ef56cd15d1131c1aa23484d7420c95a8225
---
M modules/ve/dm/ve.dm.Model.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/63/59363/1

diff --git a/modules/ve/dm/ve.dm.Model.js b/modules/ve/dm/ve.dm.Model.js
index cb06357..550fc83 100644
--- a/modules/ve/dm/ve.dm.Model.js
+++ b/modules/ve/dm/ve.dm.Model.js
@@ -14,7 +14,7 @@
  */
 ve.dm.Model = function VeDmModel( element ) {
        // Properties
-       this.element = element || { 'type': this.constructor.static.name, 
'attributes': {} };
+       this.element = element || { 'type': this.constructor.static.name };
 };
 
 ve.dm.Model.static = {};

-- 
To view, visit https://gerrit.wikimedia.org/r/59363
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I64ea9ef56cd15d1131c1aa23484d7420c95a8225
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to