Synchronous Object.observe but Asynchronous Object.unobserve ?

Yehuda Katz wycats at gmail.com
Sun Nov 4 11:05:44 PST 2012


In my experience, it is very common to want to process changeRecords that
were created, even if you letter turned off the observer. Turning off
observers (in particular, temporarily), can be useful for avoiding certain
kinds of cycles when creating bidrectional links.


On Sat, Nov 3, 2012 at 11:19 PM, Rafael Weinstein <rafaelw at chromium.org>wrote:

> If you wish, you can maintain a WeakMap of observed objects. If you
> wish to never process a changeRecord for an object you've stopped
> observing, you can simply check the WeakMap to see if it's still
> observed.
>
> On Fri, Nov 2, 2012 at 9:50 PM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com> wrote:
> > fair enough, but I want to know what I am seeing is recorded and the TV
> is
> > switched off ... how? Flagging records? Flagging objects? Via
> getNotifier ?
> >
> >
> > On Fri, Nov 2, 2012 at 11:56 AM, Erik Arvidsson <
> erik.arvidsson at gmail.com>
> > wrote:
> >>
> >> On Fri, Nov 2, 2012 at 12:22 PM, Andrea Giammarchi
> >> <andrea.giammarchi at gmail.com> wrote:
> >> > How to make this simple ... if I switch off the TV I don't expect any
> >> > eco
> >> > after ... I don't care about the program, it should not bother me.
> >>
> >> If you stick to the TV analogy... You don't want Tivo to erase what it
> >> just recorded just because you stopped recording.
> >>
> >> --
> >> erik
> >
> >
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
Yehuda Katz
(ph) 718.877.1325
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121104/f3fa8396/attachment-0001.html>


More information about the es-discuss mailing list