Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-978

jquery.couch.js: db.changes().stop() should abort XMLHTTPRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.7.0
    • None
    • None
    • Doesn't matter

    • New Contributors Level (Easy)

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            indutny Fedor Indutny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: