You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great work. I like your functions. These are a really great idea. You could take this up a notch by including the ctx as a parameter. Without this each of these function assumes there is a variable ctx in scope which may not be guaranteed if you used them in another project.
Fix this by injecting the dependency, which is a fancy way of saying make ctx a parameter.
shared-canvas/jonathan.js
Line 35 in e393e3c
Great work. I like your functions. These are a really great idea. You could take this up a notch by including the ctx as a parameter. Without this each of these function assumes there is a variable ctx in scope which may not be guaranteed if you used them in another project.
Fix this by injecting the dependency, which is a fancy way of saying make ctx a parameter.
Here you can get your ctx anywhere and it could have any name:
The text was updated successfully, but these errors were encountered: