mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
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
This commit is contained in:
parent
887465b159
commit
383a669f7c
|
@ -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 = {};
|
||||
|
|
Loading…
Reference in a new issue