Don't show attributes that don't have default values (e.g., open/close for mrow).

This commit is contained in:
Davide P. Cervone 2014-12-28 06:29:38 -05:00
parent bdd370b037
commit 91875b3558

View File

@ -499,8 +499,10 @@
}} }}
} }
for (var i = 0, m = copy.length; i < m; i++) { for (var i = 0, m = copy.length; i < m; i++) {
var value = (this.attr||{})[copy[i]]; if (value == null) {value = this[copy[i]]} if (defaults.hasOwnProperty(copy[i])) {
if (value != null) {tag.setAttribute(copy[i],this.NativeMMLattribute(value))} var value = (this.attr||{})[copy[i]]; if (value == null) {value = this[copy[i]]}
if (value != null) {tag.setAttribute(copy[i],this.NativeMMLattribute(value))}
}
} }
this.NativeMMLclass(tag); this.NativeMMLclass(tag);
}, },