Permalink
Browse files

make sure the changes test works on all browsers

  • Loading branch information...
1 parent e010604 commit 224195e5d8bcb26b8a0f9767a104f8a2a7bf5e2b @benoitc benoitc committed May 16, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 apps/couch_httpd/share/www/script/test/changes.js
@@ -140,14 +140,13 @@ couchTests.changes = function(debug) {
xhr.abort();
- if (window.EventSource) {
+ if (!!window.EventSource) {
var source = new EventSource(
"/test_suite_db/_changes?feed=eventsource");
var results = [];
var sourceListener = function(e) {
var data = JSON.parse(e.data);
results.push(data);
-
};
source.addEventListener('message', sourceListener , false);

0 comments on commit 224195e

Please sign in to comment.