-
Notifications
You must be signed in to change notification settings - Fork 2k
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
binding to a builtin name fails cryptically #510
Comments
Sorry, that's definitely a head scratcher. We should probably throw a warning for cases like this. I believe it's part of the Console API ( |
'dir' specifies directionality ('rtl' or 'auto') for HTMLElement: On Tue, May 20, 2014 at 9:17 AM, Eric Bidelman [email protected]:
|
Ah yes. Related: #123 |
Edit: removed. I may be wrong. |
Removed previous comment, I probably misdiagnosed the issue. |
This sounds like #123, but it's not. This variable |
Not TemplateBinding, rather polymer-expressions. |
Thanks @sjmiles. |
Thanks for the quick triage. |
Closing since the root cause (googlearchive/polymer-expressions#33) has been fixed. |
Example:
<template repeat="{{dir in [1, 2, 3]}}">{{dir}}</template> => 333
I scratched my head on this one for a very long time before I realized that dir() is some kind of special value, at least in Chrome.
Apologies for the imprecision, I don't know the status of "dir" in Javascript, i.e. is it just in Chrome, is it a builtin? Nevertheless, it exhibits this really unfortunate behavior.
Is is possible to detect such uses, or to make them work as intended?
http://jsbin.com/polojite/1/edit
The text was updated successfully, but these errors were encountered: