You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a Polymer or Reflectable issue.
When an event handler is named registered
@PolymerRegister('some-element')
class SomeElement extends PolymerElement {
SomeElement.created() : super.created();
@reflectable
void registered(dom.CustomEvent event, [_]) {...}
// any other name than registered works just fine
}
I agree this looks suspicious. But I don't think reflectable is doing anything different with a member named "registered".
I downloaded github.com/terrasea/gcanvas and tried the web/main out in dartium - I can reproduce the app making this stack-trace when the method is named "registered" and not if named "registered2".
I tried to add formatted: true in the pubspec.yaml:transformers:reflectable section, and then running
pub build --mode=debug with the name as "registered" and "registered2" and the only difference I see in the file that reflectable generated (build/main.dart) was the name of the field.
That makes me believe the error is not related to reflectable. Does the name "registered" have any special meaning in polymer.js?
I'm not sure if this is a Polymer or Reflectable issue.
When an event handler is named
registered
See also http://stackoverflow.com/questions/33342798/how-do-you-listen-for-custom-events-in-polymer-dart-1-0/33342934#33342798
The text was updated successfully, but these errors were encountered: