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

Circle.radius accessor is undefined #164

Open
cescopag opened this issue May 22, 2016 · 1 comment
Open

Circle.radius accessor is undefined #164

cescopag opened this issue May 22, 2016 · 1 comment

Comments

@cescopag
Copy link

When I try tu use radius accessor for circle element, I got the following error:

TypeError: undefined is not a function

example:

var circle = new UI.Circle({
  position: new Vector2(window_size.x / 2, window_size.y / 2),
  radius:50,
  backgroundColor:'white',
});

circle.radius(100);
@Meiguro
Copy link

Meiguro commented May 24, 2016

I'm too used to specifying properties at initialization ;). I've added the missing accessor on master, it'll also be fixed on CloudPebble soon. Let me know if it works if you use the local SDK.

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

2 participants