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

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

@justinfagnani

Description

@justinfagnani

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions