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

Move Random methods out of Stage class #54

Open
shallawa opened this issue Apr 29, 2024 · 0 comments
Open

Move Random methods out of Stage class #54

shallawa opened this issue Apr 29, 2024 · 0 comments

Comments

@shallawa
Copy link
Contributor

Utilities.createSubclass() can create one level of class inheritance. Utilities.extendObject() does not recursively extend the prototype of all the ancestors methods. The solution is to use ES6 classes. A step towards making Stage and its subclasses be ES6 classes is to move the Random methods out of Stage class.

shallawa added a commit to shallawa/MotionMark that referenced this issue Apr 29, 2024
WebKit#54

This is a step towards making Stage and its sub-classes be ES6 classes. To do
this the Random methods will be moved out of Stage class.

A new class Random will be added to hold the random methods as static methods.
This class will be put in a separate file. A production script can be used later
to merge all the JS files in a single file.
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

1 participant