-
Notifications
You must be signed in to change notification settings - Fork 1
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
Code review #1
Comments
If snap.svg library is AMD-aware (so if has some header doing define call), it likely exports the Snap object. So it should not be accessed via global, like: | s bigCircle smallCircle |
s := Snap value: 300 value: 600. but via loader, like: | s snapLib bigCircle smallCircle |
snapLib := require value: 'snap.svg'.
s := snapLib value: 300 value: 600. |
You can even load it dynamically completely, not putting it to | s bigCircle smallCircle |
require value: #('snap.svg') value: [ :snapLib |
s := snapLib value: 300 value: 600. but the previous seems easier to read. |
1regarding the first comment: thank you, updated to use
2Regarding the second comment: an argument in favor of adding it to |
Hannes Hirzel wrote:
Oh yes, I forgot. Definitely. |
Thank you |
Please add notes, remarks about the code and the process.
The text was updated successfully, but these errors were encountered: