You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/05/22 19:05:33 UTC
[11/32] git commit: updated refs/heads/fauxton-view-improvements to
8babf7e
docs: add error handling code to EventSource example
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/947d116b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/947d116b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/947d116b
Branch: refs/heads/fauxton-view-improvements
Commit: 947d116b38296d0551a3956227e65bb854be7b51
Parents: 55395eb
Author: Dirkjan Ochtman <dj...@apache.org>
Authored: Sun May 19 13:29:59 2013 +0200
Committer: Dirkjan Ochtman <dj...@apache.org>
Committed: Sun May 19 13:30:54 2013 +0200
----------------------------------------------------------------------
share/doc/src/changes.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/947d116b/share/doc/src/changes.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/changes.rst b/share/doc/src/changes.rst
index fbfb0c3..f806559 100644
--- a/share/doc/src/changes.rst
+++ b/share/doc/src/changes.rst
@@ -199,6 +199,10 @@ specification`_ for further details.
if (window.EventSource) {
var source = new EventSource("/somedatabase/_changes?feed=eventsource");
+ source.onerror = function(e) {
+ alert('EventSource failed.');
+ };
+
var results = [];
var sourceListener = function(e) {
var data = JSON.parse(e.data);