You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benoit Chesneau (JIRA)" <ji...@apache.org> on 2010/01/26 01:40:34 UTC
[jira] Commented: (COUCHDB-632) Generic _changes listener added to
jquery.couch.js
[ https://issues.apache.org/jira/browse/COUCHDB-632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12804819#action_12804819 ]
Benoit Chesneau commented on COUCHDB-632:
-----------------------------------------
If couchdb stop to get changes we received undefined results and oldest id :
Got 79ca040d0a6d784619c61b28e00005ff
Got undefined
Got 79ca040d0a6d784619c61b28e00005ff
Here is a quick test.html to reproduce :
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Test changes</h1>
<ul id="lines"></ul>
</body>
<script src="/_utils/script/json2.js"></script>
<script src="/_utils/script/jquery.js?1.3.1"></script>
<script src="/_utils/script/jquery.couch.js"></script>
<script>
var db = $.couch.db("test");
var changes = db.changes({seq:15})
changes.addListener(function(data) {
console.log(data);
$("#lines").append("<li> Got " + data.id + "</li>");
});
changes.start();
</script>
</html>
> Generic _changes listener added to jquery.couch.js
> --------------------------------------------------
>
> Key: COUCHDB-632
> URL: https://issues.apache.org/jira/browse/COUCHDB-632
> Project: CouchDB
> Issue Type: Improvement
> Components: Futon
> Environment: the Browser!
> Reporter: mikeal
> Priority: Minor
> Attachments: changes.diff, changes1.diff, jquery.couch.js
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> I've written a Generic _changes listener and added it to jquery.couch.js taken from Futon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.