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:
Catrope 2013-04-15 17:04:06 -07:00
parent 887465b159
commit 383a669f7c

View file

@ -14,7 +14,7 @@
*/ */
ve.dm.Model = function VeDmModel( element ) { ve.dm.Model = function VeDmModel( element ) {
// Properties // Properties
this.element = element || { 'type': this.constructor.static.name, 'attributes': {} }; this.element = element || { 'type': this.constructor.static.name };
}; };
ve.dm.Model.static = {}; ve.dm.Model.static = {};