googlearchive / polyup

A helpful assistant for migrating from Polymer v0.5 to 1.0. Does many of the boring mechanical parts for you.
http://polymerlabs.github.io/polyup/
BSD 3-Clause "New" or "Revised" License
38 stars 9 forks source link

Default host attributes that are listeners get transformed incorrectly #20

Closed ebidel closed 9 years ago

ebidel commented 9 years ago

0.5 code:

<polymer-element name="chromedash-featurelist" on-scroll="{{onScrollList}}" on-keyup="{{onKeyUp}}">

gets transformed into:

hostAttributes: {
    on-scroll: '{{onScrollList}}',
    on-keyup: '{{onKeyUp}}',
  },

This should instead be under listeners and from {{}}.

rictic commented 9 years ago

Thanks for the bug report!

Makes sense. Can we assume that any host attribute that begins with on- is a listener?

ebidel commented 9 years ago

Think so. That's a polymer specific feature.