- From: Jungkee Song <notifications@github.com>
- Date: Tue, 09 Aug 2016 19:05:53 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 10 August 2016 02:06:22 UTC
> I'm not sure its worth clearing self.registration. Code can always keep one of these DOM objects alive just by doing self.myReg = self.registration. Yeah, clearing `self.registration` seems not necessary as you mentioned though this is also true for `getRegistration(url)` in a document where the subsequent calls to the same method after the uninstalling flag is set won't return the registration. But the latter case is more natural as we don't want to match a SW of the uninstalling registration to a new client. Let's keep the current behavior for `self.registration`. > We could expose a self.registration.uninstalling flag, though. I think this is not necessary until we get some requirements from devs. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/943#issuecomment-238746379
Received on Wednesday, 10 August 2016 02:06:22 UTC