pebble / pebblejs

Program the Pebble with simply JavaScript
MIT License
455 stars 229 forks source link

Circle.radius accessor is undefined #164

Open cescopag opened 8 years ago

cescopag commented 8 years ago

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 commented 8 years ago

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.