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

Provide utilities to filter out property observers #238

Open
PK1A opened this issue Jul 10, 2014 · 2 comments
Open

Provide utilities to filter out property observers #238

PK1A opened this issue Jul 10, 2014 · 2 comments
Labels

Comments

@PK1A
Copy link
Contributor

PK1A commented Jul 10, 2014

As of today the algorithm used to observe object changes adds additional properties ("+json:observers", "+21:oid", splice2: function). If we need to add additional properties to objects we should provide, as part of the framework, utilities that would help filtering out those properties as we will need them every time objects used in templates need to be transferred "out of the #space" world (xhr calls, handing objects to 3rd party libraries etc.).

The utility methods I'm after are:

  • getting object keys
  • getting object keys + values
@benouat
Copy link
Member

benouat commented Jul 10, 2014

Or at least on the browsers that support it we should define them using Object.defineProperty and set them to be enumerable: false so that we don't even need such a utility

@No-On
Copy link

No-On commented Jul 16, 2014

Hello,

This is an important fix for me, each "foreach" brings me these options i dont want

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants