couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garrensmith <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: Fix bulk-delete on all-doc-page COUC...
Date Mon, 17 Nov 2014 13:55:48 GMT
Github user garrensmith commented on the pull request:

    https://github.com/apache/couchdb-fauxton/pull/150#issuecomment-63307280
  
    @robertkowalski I don't think we should solve this issue using async. Async is used when
callbacks are the default way of working with asynchronous functions. In Fauxton we use promises
to handle asynchronous functions.
    
    To solve this using promises you can have the removeDocument return a promise (`$.Deferred()`)
which gets resolved once the fadeout has occurred. Then use `$.when` for a final callback
once everything is complete.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message