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?
registered
gets invoked with the polymer descriptor JsObject as thethis
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