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

Javascript handlers are always in the root zone #712

Open
johnpryan opened this issue Sep 21, 2016 · 2 comments
Open

Javascript handlers are always in the root zone #712

johnpryan opened this issue Sep 21, 2016 · 2 comments

Comments

@johnpryan
Copy link

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

@johnpryan
Copy link
Author

This seems related to dart-lang/sdk#17301

@johnpryan
Copy link
Author

johnpryan commented Sep 26, 2016

It's also worth noting that the initPolymer() API used to return the zone in 0.16.0

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

1 participant