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

Spaces in binding causes SyntaxError: Unexpected identifier. #1311

Closed
dj2 opened this issue Mar 19, 2015 · 1 comment
Closed

Spaces in binding causes SyntaxError: Unexpected identifier. #1311

dj2 opened this issue Mar 19, 2015 · 1 comment
Labels

Comments

@dj2
Copy link

dj2 commented Mar 19, 2015

I put {{ name }} in my dom-module and when I refreshed I got a 'SyntaxError: Unexpected identifier' in the console. The bad method can be seen below:

(function(value
/**/) {
var old = this._setData(' name ', value);
if (value !== old) {
  this._ name Effector(old);
}
})

This is coming from bind/bind.html and it looks like it isn't stripping space before/after the property name inside the {{}}. Changing to {{name}} fixes the issue.

This is with 0.8-preview @ ce0a765

@thedeeno
Copy link

thedeeno commented Apr 4, 2015

We're seeing this on our team as well.

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