You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Fedor Indutny <fe...@gmail.com> on 2010/12/07 05:26:30 UTC

jquery.couch.js: abort XMLHTTPRequest on changes().stop()

Hi everyone!

Suppose you're listening for the db changes:

var promise = app.db.changes(0);

And want to stop listening:

promise.stop();

But it will only prevent reconnecting and event triggering, while
XMLHTTPRequest will be still active (just until server responds).

My patch is fixing this.

Link to pull request:

https://github.com/apache/couchdb/pull/3

-- 
Cheers,
Fedor Indutny.

Skype: fedor.indutny
Gtalk: fedor.indutny@gmail.com
Github: http://github.com/donnerjack13589