- From: Ben Kelly <notifications@github.com>
- Date: Fri, 01 May 2015 08:09:45 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Friday, 1 May 2015 15:10:15 UTC
The spec has been changed so that most events fired on ServiceWorker inherit from ExtendableEvent and therefore have a `.waitUntil()` method. The one exception is MessageEvent. Should we have some kind of ExtendedMessageEvent that inherits from ExtendableEvent and MessageEvent? Right now one cannot do this:
```
addEventListener('message', function(event) {
event.waitUntil(cache.add(event.data.request));
});
```
---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/690
Received on Friday, 1 May 2015 15:10:15 UTC