- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 19 Jul 2016 07:24:09 -0700
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
Received on Tuesday, 19 July 2016 14:24:49 UTC
You need to save the appropriate global before going async, in general. Once you're in the event loop you've got no reference to such objects, given that an event loop can service multiple globals. Off the top of my head, maybe one way to do this is to associate an orientation change counter with every event loop (you can do this from within the screen orientation spec), and increment it at the beginning of every "change" event firing, and decrement it at the end of every change event firing (after all handlers have run). Then you can check if the event loop's orientation change counter is greater than zero. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/screen-orientation/pull/90#issuecomment-233648943
Received on Tuesday, 19 July 2016 14:24:49 UTC