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

Problems with Ractive.set(".foo") #1999

Closed
dagnelies opened this issue Jun 16, 2015 · 1 comment
Closed

Problems with Ractive.set(".foo") #1999

dagnelies opened this issue Jun 16, 2015 · 1 comment

Comments

@dagnelies
Copy link
Contributor

Hi,

Here is the fiddle:

http://jsfiddle.net/50hLj2r0/1/

As you see, adding with a "dotted" keypath adds the data to it but does not update the view. There is also no warning that ".foo" shouldn't be used in setters, like the other restricted references.

This ticket is actually twofolds:

  • a warning when using "Ractive.set / push / ..." using restricted references
  • properly cancel the action instead of doing something wrong or throwing an error
@dagnelies
Copy link
Contributor Author

Oops, duplicate of #1958

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

No branches or pull requests

2 participants