couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fedor Indutny <fedor.indu...@gmail.com>
Subject jquery.couch.js: abort XMLHTTPRequest on changes().stop()
Date Tue, 07 Dec 2010 04:26:30 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message