From 4782106f6395331be51fddaabd04c5b13decd1b0 Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Fri, 26 Aug 2022 11:12:32 +0800 Subject: [PATCH 1/6] Update MathJax.js --- ts/input/asciimath/mathjax2/legacy/MathJax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/input/asciimath/mathjax2/legacy/MathJax.js b/ts/input/asciimath/mathjax2/legacy/MathJax.js index 903ede297..4826ee5a6 100644 --- a/ts/input/asciimath/mathjax2/legacy/MathJax.js +++ b/ts/input/asciimath/mathjax2/legacy/MathJax.js @@ -19,7 +19,7 @@ exports.MathJax = MathJax; return obj; }; var CONSTRUCTOR = function () { - return function () {return arguments.callee.Init.call(this,arguments)}; + return function aaa() {return aaa.Init.call(this,arguments)}; }; BASE.Object = OBJECT({ @@ -177,7 +177,7 @@ exports.MathJax = MathJax; // Create a callback from an associative array // var CALLBACK = function (data) { - var cb = function () {return arguments.callee.execute.apply(arguments.callee,arguments)}; + var cb = function ccc() {return ccc.execute.apply(ccc,arguments)}; for (var id in CALLBACK.prototype) { if (CALLBACK.prototype.hasOwnProperty(id)) { if (typeof(data[id]) !== 'undefined') {cb[id] = data[id]} From 26d71257076c020b823bf2b75c04f77d61deb891 Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Fri, 26 Aug 2022 11:28:13 +0800 Subject: [PATCH 2/6] Update MathJax.js --- ts/input/asciimath/mathjax2/legacy/MathJax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/input/asciimath/mathjax2/legacy/MathJax.js b/ts/input/asciimath/mathjax2/legacy/MathJax.js index 903ede297..ce7ce263d 100644 --- a/ts/input/asciimath/mathjax2/legacy/MathJax.js +++ b/ts/input/asciimath/mathjax2/legacy/MathJax.js @@ -19,7 +19,7 @@ exports.MathJax = MathJax; return obj; }; var CONSTRUCTOR = function () { - return function () {return arguments.callee.Init.call(this,arguments)}; + return function aaa() {return aaa.Init.call(this,Object.assign(arguments,{call:aaa}))}; }; BASE.Object = OBJECT({ @@ -40,7 +40,7 @@ exports.MathJax = MathJax; Init: function (args) { var obj = this; if (args.length === 1 && args[0] === PROTO) {return obj} - if (!(obj instanceof args.callee)) {obj = new args.callee(PROTO)} + if (!(obj instanceof args.call)) {obj = new args.call(PROTO)} return obj.Init.apply(obj,args) || obj; }, From d4e0d4ff33eea78feebbbd9996c230e32b35e963 Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Fri, 26 Aug 2022 12:32:49 +0800 Subject: [PATCH 3/6] Update JSON.js --- .../asciimath/mathjax2/legacy/jax/element/JSON.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ts/input/asciimath/mathjax2/legacy/jax/element/JSON.js b/ts/input/asciimath/mathjax2/legacy/jax/element/JSON.js index d158bbf30..2abfcf81b 100644 --- a/ts/input/asciimath/mathjax2/legacy/jax/element/JSON.js +++ b/ts/input/asciimath/mathjax2/legacy/jax/element/JSON.js @@ -56,8 +56,8 @@ }); MML.msubsup.Augment({ - toJSON: function () { - var json = this.SUPER(arguments).toJSON.call(this); + toJSON: function ttt() { + var json = this.SUPER(ttt).toJSON.call(this); if (this.data[this.sub] == null) { json.type = "msup"; json.children.splice(1,1); @@ -71,8 +71,8 @@ }); MML.munderover.Augment({ - toJSON: function () { - var json = this.SUPER(arguments).toJSON.call(this); + toJSON: function yyy() { + var json = this.SUPER(yyy).toJSON.call(this); if (this.data[this.munder] == null) { json.type = "mover"; json.children.splice(1,1); @@ -86,8 +86,8 @@ }); MML.TeXAtom.Augment({ - toJSON: function () { - var json = this.SUPER(arguments).toJSON.call(this); + toJSON: function uuu() { + var json = this.SUPER(uuu).toJSON.call(this); json.type = "mrow"; json.TeXAtom = MML.TEXCLASSNAMES[this.Get("texClass")]; return json; From 6b13e97f15d3385c30db737fb422107b5121128f Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Fri, 26 Aug 2022 12:36:57 +0800 Subject: [PATCH 4/6] Update jax.js --- .../mathjax2/legacy/jax/element/mml/jax.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ts/input/asciimath/mathjax2/legacy/jax/element/mml/jax.js b/ts/input/asciimath/mathjax2/legacy/jax/element/mml/jax.js index 96fb9186f..473aca11d 100644 --- a/ts/input/asciimath/mathjax2/legacy/jax/element/mml/jax.js +++ b/ts/input/asciimath/mathjax2/legacy/jax/element/mml/jax.js @@ -813,9 +813,9 @@ MathJax.ElementJax.mml.Augment({ if (!(this.isEmbellished()) || typeof(this.core) === "undefined") {return this} return this.data[this.core].CoreMO(); }, - toString: function () { + toString: function qqq() { if (this.inferred) {return '[' + this.data.join(',') + ']'} - return this.SUPER(arguments).toString.call(this); + return this.SUPER(qqq).toString.call(this); }, setTeXclass: function (prev) { var i, m = this.data.length; @@ -1196,12 +1196,12 @@ MathJax.ElementJax.mml.Augment({ } }, linebreakContainer: true, - Append: function () { + Append: function www() { for (var i = 0, m = arguments.length; i < m; i++) { if (!((arguments[i] instanceof MML.mtr) || (arguments[i] instanceof MML.mlabeledtr))) {arguments[i] = MML.mtr(arguments[i])} } - this.SUPER(arguments).Append.apply(this,arguments); + this.SUPER(www).Append.apply(this,arguments); }, setTeXclass: MML.mbase.setSeparateTeXclasses }); @@ -1221,11 +1221,11 @@ MathJax.ElementJax.mml.Augment({ mtable: {rowalign: true, columnalign: true, groupalign: true} }, linebreakContainer: true, - Append: function () { + Append: function eee() { for (var i = 0, m = arguments.length; i < m; i++) { if (!(arguments[i] instanceof MML.mtd)) {arguments[i] = MML.mtd(arguments[i])} } - this.SUPER(arguments).Append.apply(this,arguments); + this.SUPER(eee).Append.apply(this,arguments); }, setTeXclass: MML.mbase.setSeparateTeXclasses }); @@ -1420,9 +1420,9 @@ MathJax.ElementJax.mml.Augment({ MML.xml = MML.mbase.Subclass({ type: "xml", - Init: function () { + Init: function rrr() { this.div = document.createElement("div"); - return this.SUPER(arguments).Init.apply(this,arguments); + return this.SUPER(rrr).Init.apply(this,arguments); }, Append: function () { for (var i = 0, m = arguments.length; i < m; i++) { From 9d0eb97a61714a385085aae8d591ad6335fd1d3b Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Fri, 26 Aug 2022 12:38:04 +0800 Subject: [PATCH 5/6] Update MathJax.js --- ts/input/asciimath/mathjax2/legacy/MathJax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/input/asciimath/mathjax2/legacy/MathJax.js b/ts/input/asciimath/mathjax2/legacy/MathJax.js index 903ede297..ef410f065 100644 --- a/ts/input/asciimath/mathjax2/legacy/MathJax.js +++ b/ts/input/asciimath/mathjax2/legacy/MathJax.js @@ -65,7 +65,7 @@ exports.MathJax = MathJax; prototype: { Init: function () {}, - SUPER: function (fn) {return fn.callee.SUPER}, + SUPER: function (fncallee) {return fncallee.SUPER}, can: function (method) {return typeof(this[method]) === "function"}, has: function (property) {return typeof(this[property]) !== "undefined"}, isa: function (obj) {return (obj instanceof Object) && (this instanceof obj)} From d3458ec88b22528009c4dc57c4f9a0a542b1fd24 Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Mon, 5 Sep 2022 18:32:52 +0800 Subject: [PATCH 6/6] Update MathJax.js --- ts/input/asciimath/mathjax2/legacy/MathJax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/input/asciimath/mathjax2/legacy/MathJax.js b/ts/input/asciimath/mathjax2/legacy/MathJax.js index e9690409d..9f2d1798b 100644 --- a/ts/input/asciimath/mathjax2/legacy/MathJax.js +++ b/ts/input/asciimath/mathjax2/legacy/MathJax.js @@ -67,7 +67,7 @@ exports.MathJax = MathJax; prototype: { Init: function () {}, - SUPER: function (fncallee) {return fncallee.SUPER}, + SUPER: function (fncall) {return fncall.SUPER}, can: function (method) {return typeof(this[method]) === "function"}, has: function (property) {return typeof(this[property]) !== "undefined"}, isa: function (obj) {return (obj instanceof Object) && (this instanceof obj)}