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

> @@ -662,6 +638,29 @@
>          <code>registrationId</code> and <code>endpoint</code> is expected to be unique and specific
>          to a particular <a>webapp</a> instance running on a specific device.
>        </p>
> +      <p>
> +        The <code><dfn id=
> +        "widl-PushRegistration-unregister-Promise-boolean">unregister</dfn></code> method when
> +        invoked MUST run the following steps:
> +      </p>
> +      <ol>
> +        <li>Let <var>promise</var> be a new <a><code>Promise</code></a>.
> +        </li>
> +        <li>Return <var>promise</var> and continue the following steps asynchronously.
> +        </li>
> +        <li>If the <a>webapp</a> is not registered, resolve <var>promise</var> with
> +        <code>false</code> and terminate these steps.

How so?

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

Received on Monday, 15 December 2014 15:40:41 UTC