Skip to content

Conversation

@sritchie
Copy link
Collaborator

Looks like I left a couple of debug bindings in grid.js, which caused an exception when lineX or lineY were set to false.

I also found it very confusing that origin was able to be used before being defined. This feels like a messy bug where the origin property is used first... and the const origin later in the file was re-binding this variable? That shouldn't be possible but removing the origin binding didn't cause any errors, which was troubling.

axis the variable and axis the function were clashing as well, so I did some renaming there to make things unambiguous.

const lines = (() => {
const result = [];
for (axis of this.axes) {
for (const axis of this.axes) {
Copy link
Collaborator Author

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();
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant