W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2014

Re: [whatwg] Notifications and service workers

From: Andrew Wilson <atwilson@google.com>
Date: Mon, 29 Sep 2014 13:35:00 +0200
Message-ID: <CAArhhisXhWMSObX98s6JOQxJ6cVM64cXQTCi4SOxcaZX5GgoQg@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: WHATWG <whatwg@whatwg.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Jake Archibald <jaffathecake@gmail.com>, Robert Bīndar <robertbindar@gmail.com>, Peter Beverloo <beverloo@google.com>
I'm sorry, I meant that you can only use the 'data' attribute, if the data
you want to associate with the notification is structured-cloneable. Which
precludes lots of interesting stuff, like objects with attached methods,
memoized functions, etc.

I'm aware that 'data' is structured-cloneable - I'm saying that's not
sufficient for many uses.


On Mon, Sep 29, 2014 at 12:34 PM, Jonas Sicking <jonas@sicking.cc> wrote:

> On Mon, Sep 29, 2014 at 3:10 AM, Andrew Wilson <atwilson@google.com>
> wrote:
> > That only works if 'data' is a structured-cloneable data structure.
> Per spec it is yes.
> / Jonas
Received on Monday, 29 September 2014 11:35:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:23 UTC