Re: [ServiceWorker] ServiceWorkerClient to Client (#588)

@mounirlamouri 

Had a quick chat with @annevk in IRC. Thinking about usability, I think people will look for methods that act on the client, on the client object. How about:

```js
client.focus().then(function(updatedClient) {
  updatedClient.focued === true;
})
```

Basically, your idea of returning an updated snapshot, but leaving the focus method on client.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/588#issuecomment-69325685

Received on Friday, 9 January 2015 11:58:30 UTC