-
Notifications
You must be signed in to change notification settings - Fork 53
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
Problem .clone()ing a user defined object #154
Comments
sadly the line numbers can be misleading with some errors because of the coffeescript -> javascript compiling, future versions should in theory have less of those issues. about the issue itself not 100% sure, I am investigating where it comes from (something seems to not be initiated correctly in the filletPlank class from what I traced down so far...very weird |
Different initializations of [0,0,1], [0,1,1] and similar - these result in "cube size should be non negative". This seems to be because of the lines [1,1,1] gets maximum stack size exceeded, maybe it's breaking at 0 as one of the dimensions. [2,1,1] makes it work, and the object is cloned as expected, not using the default values set. I tried to understand javascript prototypal inheritance, but I don't, and I fear the unknown. |
Code here:
https://www.dropbox.com/sh/nzkay28ov4nksqz/u08II_ga3C
I have a part that I've defined as a subclass of Part. When I try to .clone() (on line 106 of filletsCloneProblem.coffee in the code in Dropbox) the part, I get the error:
File: line 215: _ref is undefined
There is no line 215 in the code. I am able to clone the objects created in the objectOriented/defining_parts example, but don't see what the problem is here.
The text was updated successfully, but these errors were encountered: