Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Generate getters for events #3

Open
sigmundch opened this issue Sep 18, 2014 · 2 comments
Open

Generate getters for events #3

sigmundch opened this issue Sep 18, 2014 · 2 comments
Milestone

Comments

@sigmundch
Copy link
Contributor

See dart-archive/core-elements#79

quote:

like

  async.Stream<dom.CustomEvent> get onPolymerActivate =>
      PolymerSelector._onPolymerActivate.forTarget(this);

  static const dom.EventStreamProvider<dom.CustomEvent> _onPolymerActivate =
      const dom.EventStreamProvider<dom.CustomEvent>('polymer-activate');

see also this discussion
https://groups.google.com/a/dartlang.org/forum/#!topic/web/_FDeF95uj4g

for a complete example see https://github.com/bwu-dart/polymer_elements/blob/master/lib/polymer_selector/polymer_selector.dart#L210-L214

@sigmundch
Copy link
Contributor Author

see also dart-archive/core-elements#16

@jakemac53
Copy link
Contributor

Lets revive this since events are often specified for elements now, and I believe hydroysis already parses them for us :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants