-
Notifications
You must be signed in to change notification settings - Fork 8
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
Clean up usages of createObservableArray.getArray #279
Comments
In the preceding commit, I implemented one of the conversions. I first ran the code to make sure worked correctly, and that I could understand when it was being called in the sim. Then I converted usage, and added a console.log() to double check the new code was being run in the sim. I removed the console.log before committing. When committing, I referenced this issue URL so the change is easy to track. |
@SaurabhTotey -- @samreid committed an example above for you to follow. Probably have a brief conversation with him if you get a chance to do this work. |
|
I removed usages detected through aqua, as well as the |
As described in #266 (comment)
I improved documentation in the commits. I noticed there are 86 occurrences of
.getArray()
across the codebase. Many of these could be converted to use ObservableArray.filter and ObservableArray.map which were improved in #265 or other ObservableArray methods. Others may have simple solutions, and the ones that remain should be documented accordingly as prescribed in #266 (comment). For example, density and buoyancy has:But this could likely be changed to something like:
I'm not sure who should work on this or when it should be done. Should this be a chip away issue, so each developer can edit and test their own sims? @ariel-phet what do you recommend?
The text was updated successfully, but these errors were encountered: