dart-archive / polymer-dart

Polymer support for Dart
https://pub.dartlang.org/packages/polymer
BSD 3-Clause "New" or "Revised" License
181 stars 33 forks source link

Give early error about `registered` method #629

Closed jakemac53 closed 8 years ago

jakemac53 commented 8 years ago

registered gets invoked with the polymer descriptor JsObject as the this arg at element registration time. It might be useful to supply some other way of adding this method, but instance methods should not be allowed (since it will be invoked without an instance). Maybe just force it to be a static method?

Related to https://github.com/dart-lang/reflectable/issues/45#issuecomment-151473777 and http://stackoverflow.com/questions/33342798/how-do-you-listen-for-custom-events-in-polymer-dart-1-0/33342934#33342798

jakemac53 commented 8 years ago

This is an error now