incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: git commit: add Server-Sent Events protocol to db changes API. close #COUCHDB-986
Date Wed, 16 May 2012 05:51:24 GMT
On Wed, May 16, 2012 at 7:44 AM, Benoit Chesneau <bchesneau@gmail.com> wrote:
> On Wed, May 16, 2012 at 7:42 AM, Paul Davis <paul.joseph.davis@gmail.com> wrote:
>> That JS test looks broken for JS environments that don't support
>> EventSource. Notably the CLI test suite but also browsers that don't
>> implement it. I'd either move the entire test into the conditional or
>> reimplement it by parsing the actual data sent across.
>>
>
>
> well there is an if() . Isn't it enough ?
>
> - benoit

i've changed the test from `if (window.EventSource) {`  to `if
(!!window.EventSource) {` so every browser should be happy.

(I blame js to have a weird syntax)

- benoit

Mime
View raw message