DOM EventStreams (take two on Streams): Request for feedback

Andrea Giammarchi andrea.giammarchi at gmail.com
Tue Apr 16 17:49:32 PDT 2013


yep, I was wrapping there already ... ain't needed.

Looking forward to see some example and read others opinion.

all the best


On Tue, Apr 16, 2013 at 5:20 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> On Tue, Apr 16, 2013 at 5:12 PM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com> wrote:
> > why is that?
> >
> > void   forEach(mapCB);
> >
> > if that's to make it consistent with Array#forEach you should accept the
> > context argument in both map and forEach too?
>
> Sorry, I forgot to update their signatures together.  You're right
> that it should have the same signature as .map().
>
> > However, I don't get why this should not work:
> >
> > str.forEach(callback).then(notify);
>
> Hm, so .forEach() just returns the same stream?  Makes sense to me.
>
> > Said that, I think is quite good after some renaming, but probably you
> need
> > to write some more concrete example?
>
> I need to point to a few example pages I've already found, actually.
> The ACM page I link in the discussion of .switch() is very good!
>
> > P.S.
> >
> > had already thoughts about a possible
> >
> > $(obj).on('loadStatus', updateLoadingUI); ^__^
> >
> > naaaaa, just kidding
>
> UpdateStream.watch(obj, 'loadStatus').listen(updateLoadingUI);
>
> ~TJ
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130416/cec13f11/attachment.html>


More information about the es-discuss mailing list