googlearchive / core-icon

A custom element that display an icon.
https://www.polymer-project.org/docs/elements/core-elements.html#core-icon
10 stars 17 forks source link

Fix unhandled exception #43

Closed atotic closed 9 years ago

atotic commented 9 years ago

The original code blows up if icon=="". This can happen in the wild, you want blank icon until you decide what it is.

The fix also prints out a "missing icon warning" if the icon is not "".