You are reading a single comment by @JumJum and its replies. Click here to read the full conversation.
  • To take Graphics as an example only.
    My intention is not to change Graphics. But in myownClass it would be nice to have.
    We have functions to set bgColor and to get bgColor.
    Is there a way to define a writeable property in jswrap_xxx file ?
    So instead of using myGraphics.setBgColor(newColor); it would be myGraphics.BgColor = newColor;
    And instead of var x = myGraphics.getBgColor(); it would be var x = myGraphics.BgColor;
    Following API-description for Object.defineProperty, writeable and get/set are not supported.
    Hmmm, but in jswrap_object_defineProperty get and set are used to create getter and setter

About

Avatar for JumJum @JumJum started