polymer-dart
polymer-dart copied to clipboard
Javascript handlers are always in the root zone
Description
Steps to Reproduce
Initialize polymer in a zone:
main() {
runZoned(() async {
await initPolymer();
});
}
Expected Results
a Polymer component handle (e.g. on-tap="tapHandler"
) should run in the same zone that called await initPolymer()
: printing Zone.current
should be a CustomZone, not the root zone.
Actual Results
The root zone
This seems related to https://github.com/dart-lang/sdk/issues/17301
It's also worth noting that the initPolymer()
API used to return the zone in 0.16.0