dart-lang/dart-web-components — pull request #135 by sqs (2012-10-31 08:25:48+00:00)
Title: Include element ID in event listener name to ensure unique names

Using data-actions in a component like this:
````

0

````

was yielding an error:

````
Internal error: 'method already defined
autogenerated.EventListener _listener_click_1;
````

I believe this is because the Contexts for the top-level ComponentInstanceEmitter declarations and the ConditionalEmitter declarations were different, but they both emitted to the same Dart scope. This patch adds the element ID to the names of EventListeners to ensure they are unique.