From 383a669f7c4a641f72d1cbd769a69d820feb551a Mon Sep 17 00:00:00 2001 From: Catrope Date: Mon, 15 Apr 2013 17:04:06 -0700 Subject: [PATCH] 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 --- modules/ve/dm/ve.dm.Model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/dm/ve.dm.Model.js b/modules/ve/dm/ve.dm.Model.js index cb06357dba..550fc83f49 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 = {};