-
-
Notifications
You must be signed in to change notification settings - Fork 120
Remove broken debug bindings #66
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
base: master
Are you sure you want to change the base?
Conversation
| const lines = (() => { | ||
| const result = []; | ||
| for (axis of this.axes) { | ||
| for (const axis of this.axes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was rebinding the function binding...
| touched["origin"] || | ||
| init | ||
| ) { | ||
| return this.updateRanges(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these artifacts are all over the codebase from the coffeescript conversion.
| axis(axes[1], axes[0], range2, range1, this.axes[+lineX]); | ||
| axisFn(axes[1], axes[0], range2, range1, this.axes[+lineX]); | ||
| } | ||
| window.cake1 = this.axes[0].buffer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops!
| } else { | ||
| dimensions = Array.from(dimensions); | ||
| } | ||
| const x = Array.from(dimensions).includes(1) ? 0 : origin.x; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while debugging a different problem that turned out to be user error, I introduced this mild cleanup.
Looks like I left a couple of debug bindings in grid.js, which caused an exception when
lineXorlineYwere set to false.I also found it very confusing that
originwas able to be used before being defined. This feels like a messy bug where theoriginproperty is used first... and theconst originlater in the file was re-binding this variable? That shouldn't be possible but removing theoriginbinding didn't cause any errors, which was troubling.axisthe variable andaxisthe function were clashing as well, so I did some renaming there to make things unambiguous.