We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I'm using jsface for the new objects of my project, but I have a lot of "legacy objects", like:
var Robot = function() { this.getRotation = function() { return 0; } };
I'm trying to create a child of Robot using jsface, like:
var RobotChild = Class(Robot, function() { return { }; });
But, when I do:
var robot = new RobotChild();
I get an empty instance.
Regards
The text was updated successfully, but these errors were encountered:
What do you mean you get an empty instance? I run the snippet, robot does have properties:
typeof robot; // "object" typeof robot.getRotation; // "function" robot.getRotation(); // 0
Sorry, something went wrong.
No branches or pull requests
Hi! I'm using jsface for the new objects of my project, but I have a lot of "legacy objects", like:
I'm trying to create a child of Robot using jsface, like:
But, when I do:
I get an empty instance.
Regards
The text was updated successfully, but these errors were encountered: