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

Sparky does not pick up objects that are not in Sparky.data at first run #3

Open
stephband opened this issue Feb 1, 2016 · 0 comments
Labels

Comments

@stephband
Copy link
Member

Gotcha.

Sparky.data is in the prototype chain for sparky.data. It is yet to be decided whether this is wise. IT makes observation difficult, that's for sure. The upshot is that this won't work:

{{property}}

Sparky(div);

Sparky.data.model = { object: { thing: { property: 'hello' } } };

...because Sparky.data is in the prototype chain of the data used by the tag, and model is not yet declared.

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

1 participant