Re: [push-api] Move unregister() to PushRegistration. (#97)

Because then you can easily check if the call was a no-op or not... If you have a ```pushRegistration``` instance, you can just call ```pushRegistration.unregister().then(function(b) {...});``` and use ```b``` to know whether the unregistration happened instead of doing ```navigator.push.getRegistration().then(function(r) { return r ? r.unregister() : null; }).then(function() { ... });```.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/97#issuecomment-67039200

Received on Monday, 15 December 2014 18:19:41 UTC