www

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

commit f966b736a380657048c21b4cffb5083770335065
parent ab9e97cd3a7403da5fea6d3083b919df2df77b18
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Fri,  3 May 2013 09:45:51 -0400

Part of the fix for issue #373 caused ref-test failures.  This fixes that regression.

Diffstat:
Munpacked/jax/element/mml/jax.js | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js @@ -271,13 +271,13 @@ MathJax.ElementJax.mml.Augment({ while (parent && parent.notParent) {parent = parent.parent} return parent; }, - Get: function (name,nodefault,skipadjust) { + Get: function (name,nodefault) { 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(); - if (parent && parent["adjustChild_"+name] != null && !skipadjust) { + if (parent && parent["adjustChild_"+name] != null) { return (parent["adjustChild_"+name])(this.childPosition(),nodefault); } var obj = this.inherit; var root = obj; @@ -304,9 +304,9 @@ MathJax.ElementJax.mml.Augment({ {values[arguments[i]] = this.Get(arguments[i])} return values; }, - adjustChild_scriptlevel: function (i,nodef) {return this.Get("scriptlevel",nodef,true)}, // always inherit from parent - adjustChild_displaystyle: function (i,nodef) {return this.Get("displaystyle",nodef,true)}, // always inherit from parent - adjustChild_texprimestyle: function (i,nodef) {return this.Get("texprimestyle",nodef,true)}, // always inherit from parent + adjustChild_scriptlevel: function (i,nodef) {return this.Get("scriptlevel",nodef)}, // always inherit from parent + adjustChild_displaystyle: function (i,nodef) {return this.Get("displaystyle",nodef)}, // always inherit from parent + adjustChild_texprimestyle: function (i,nodef) {return this.Get("texprimestyle",nodef)}, // always inherit from parent childPosition: function () { var child = this, parent = child.parent; while (parent.notParent) {child = parent; parent = child.parent}