Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Null paths throw exceptions with "as" syntax #19

Closed
dfreedm opened this issue Jan 10, 2014 · 1 comment
Closed

Null paths throw exceptions with "as" syntax #19

dfreedm opened this issue Jan 10, 2014 · 1 comment

Comments

@dfreedm
Copy link
Contributor

dfreedm commented Jan 10, 2014

If a template is bound to a path that would evaluate an undefined model member, then an exception is thrown at https://github.com/Polymer/polymer-expressions/blob/master/src/polymer-expressions.js#L149

Example:

  <template id="t" bind="{{ foo.bar as b }}">
    <span>{{ b }}</span>
  </template>
  <script>
    t.bindingDelegate = new PolymerExpressions();
    t.model = {};
  </script>
@ghost ghost assigned rafaelw Jan 10, 2014
dfreedm added a commit to googlearchive/polymer-dev that referenced this issue Jan 10, 2014
@rafaelw
Copy link
Contributor

rafaelw commented Jan 14, 2014

Fixed: db4a055

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

No branches or pull requests

2 participants