Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to use the new g-component sugar #40

Merged
merged 1 commit into from
Nov 20, 2012
Merged

update to use the new g-component sugar #40

merged 1 commit into from
Nov 20, 2012

Conversation

frankiefu
Copy link
Member

No description provided.

@ghost ghost assigned sorvell Nov 20, 2012
}
</style>
<template iterate="stars">
<span index="{{index}}" class="star {{starClass}}" on-click="starClick"></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to leave the click handler on the element rather than the iterated nodes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided not to change this right now. Declarative events currently listen on the node and therefore do not get targets from the node's shadowDom.

@sorvell
Copy link
Contributor

sorvell commented Nov 20, 2012

LGTM

sorvell pushed a commit that referenced this pull request Nov 20, 2012
update to use the new g-component sugar
@sorvell sorvell merged commit 6979594 into Polymer:master Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants