-
Notifications
You must be signed in to change notification settings - Fork 16
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
Comments
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
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 makingStage
and its subclasses be ES6 classes is to move theRandom
methods out ofStage
class.The text was updated successfully, but these errors were encountered: