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

Add utility functions for Object getters and setters #132

Closed
Harbs opened this Issue Mar 16, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Harbs
Copy link
Contributor

Harbs commented Mar 16, 2018

In af19f12 and d50bb9e We added the following:

  1. org.apache.royale.utils.object.defineGetter
  2. org.apache.royale.utils.object.defineSimpleGetter
  3. org.apache.royale.utils.object.defineProperty
  4. org.apache.royale.utils.object.defineSimpleProperty

These utility functions are JS-only and used for adding setters and getters dynamically (for polyfills and the like).

The Simple varieties don't require passing in functions, while the non-simple ones require functions to be passed in for the getters and/or setters.

@Harbs Harbs closed this Mar 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment