Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete arguments.callee #854

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions ts/input/asciimath/mathjax2/legacy/MathJax.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ 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({
Expand All @@ -40,7 +42,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;
},

Expand All @@ -65,7 +67,7 @@ exports.MathJax = MathJax;

prototype: {
Init: function () {},
SUPER: function (fn) {return fn.callee.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)}
Expand Down Expand Up @@ -177,7 +179,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]}
Expand Down
12 changes: 6 additions & 6 deletions ts/input/asciimath/mathjax2/legacy/jax/element/JSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions ts/input/asciimath/mathjax2/legacy/jax/element/mml/jax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
});
Expand All @@ -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
});
Expand Down Expand Up @@ -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++) {
Expand Down