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 #850

Open
masx200 opened this issue Aug 26, 2022 · 2 comments
Open

delete arguments.callee #850

masx200 opened this issue Aug 26, 2022 · 2 comments

Comments

@masx200
Copy link

masx200 commented Aug 26, 2022

delete arguments.callee

#849

#848

SUPER: function (fn) {return fn.callee.SUPER},

var json = this.SUPER(arguments).toJSON.call(this);

return this.SUPER(arguments).Init.apply(this,arguments);

@dpvc
Copy link
Member

dpvc commented Sep 4, 2022

We appreciate your interest in trying to improve MathJax by submitting these PRs. The code you are modifying is some of the earliest written for MathJax back in 2008, and is foundational for the object-oriented programming model used in v2 and below. It was quite delicate at the time, and the handling of SUPER was one of the more fragile parts of the code, with some complications involving subclasses and updating methods that I'm not sure are addressed in these PRs.

You have not really provided much in the way of explanation for what you are doing, or how you have tested that this does the same thing as the original code. In addition, some of the PRs seem to make the same changes to the same files. All three PRs should be combined into a single PR that makes the changes clear and explains them. Also, we follow the fit-flow model here, so changes should be on a branch that originates from the develop branch and targets the develop branch, not the master branch. You would have to rebase you changes off develop for them to be considered.

In any case, because this is legacy code in v3, we are not anxious to make adjustments to these files, especially in such a fundamental area of the legacy code. What really needs to happen is that the AsciiMath input jax needs to be ported to a true v3 input jax so that the legacy code can be dropped. If you are interested in such a project, a PR that does that would be welcome. For now, I am going to close these PRs.

This was referenced Sep 4, 2022
@masx200
Copy link
Author

masx200 commented Sep 5, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants