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

[0.8] Data-binding icon to computed value causes exception #41

Open
justinfagnani opened this issue Apr 8, 2015 · 0 comments
Open

[0.8] Data-binding icon to computed value causes exception #41

justinfagnani opened this issue Apr 8, 2015 · 0 comments

Comments

@justinfagnani
Copy link

I'm trying to use core-icon like this:

<core-icon icon="[[getIcon(data)]]"></core-icon>

getIcon(data) {
  return "icons:folder";
}

Which causes this exception:

Uncaught TypeError: Cannot read property 'applyIcon' of undefinedPolymer.updateIcon @ core-icon.html:174

Binding to a property works, so something in core could be partially to blame, but core-icon should probably be resilient to bad icon values.

@cdata cdata removed their assignment Jan 27, 2016
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