www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e33e00bfaf0a232e403b12b37d1d815afa31971e
parent 3cd6cf59e372fd68bd1ac09010ab47e73e4c4868
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sun,  7 Dec 2014 07:09:27 -0500

Merge branch 'issue971' into develop.  Issue #971.

Diffstat:
Munpacked/extensions/toMathML.js | 5++---
Munpacked/jax/element/mml/jax.js | 8+++++---
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/unpacked/extensions/toMathML.js b/unpacked/extensions/toMathML.js @@ -61,9 +61,8 @@ MathJax.Hub.Register.LoadHook("[MathJax]/jax/element/mml/jax.js",function () { if (this.type === "mstyle") {defaults = MML.math.prototype.defaults} for (var id in defaults) {if (!skip[id] && !copy[id] && defaults.hasOwnProperty(id)) { if (this[id] != null && this[id] !== defaults[id]) { - var value = this[id]; delete this[id]; - if (this.Get(id) !== value) {attr.push(id+'="'+this.toMathMLattribute(value)+'"')} - this[id] = value; + if (this.Get(id,null,1) !== this[id]) + attr.push(id+'="'+this.toMathMLattribute(this[id])+'"'); } }} } diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js @@ -296,9 +296,11 @@ MathJax.ElementJax.mml.Augment({ while (parent && parent.notParent) {parent = parent.parent} return parent; }, - Get: function (name,nodefault) { - if (this[name] != null) {return this[name]} - if (this.attr && this.attr[name] != null) {return this.attr[name]} + Get: function (name,nodefault,noself) { + if (!noself) { + if (this[name] != null) {return this[name]} + if (this.attr && this.attr[name] != null) {return this.attr[name]} + } // FIXME: should cache these values and get from cache // (clear cache when appended to a new object?) var parent = this.Parent();