Skip to content
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

demo sprite-properties throws error #17

Closed
pvdz opened this issue Aug 8, 2012 · 2 comments
Closed

demo sprite-properties throws error #17

pvdz opened this issue Aug 8, 2012 · 2 comments

Comments

@pvdz
Copy link

pvdz commented Aug 8, 2012

The sprite-properties demo (under header "flash stuff") throws an error, probably related to depricated or bad api call.

Uncaught TypeError: Object [object Object] has no method 'rect'
@pvdz
Copy link
Author

pvdz commented Aug 8, 2012

The "rotating-square" demo under "misc" also throws the same error. The only point where rect is used is:

new bonsai.Path().rect(-50, -50, 100, 100)

The sprite demo was also using this.

@pvdz
Copy link
Author

pvdz commented Aug 8, 2012

They probably did not mean to have the parens after Path... :) So they should be new bonsai.Path.rect(... (maybe not even the new operator?)

@pvdz pvdz closed this as completed Aug 8, 2012
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

No branches or pull requests

1 participant