You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/06/16 23:22:28 UTC

[7/8] jquery-couch commit: updated refs/heads/pre-master to 4f5ad10

Add complete for login, and use code style of the lib


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/5617c6e0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/5617c6e0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/5617c6e0

Branch: refs/heads/pre-master
Commit: 5617c6e082aab54c97bbacd2321aefedef57c501
Parents: 0cbbfa9
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Mon Jun 16 22:08:38 2014 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Mon Jun 16 23:22:21 2014 +0200

----------------------------------------------------------------------
 jquery.couch.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/5617c6e0/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index 7252548..a46e05d 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -218,9 +218,7 @@
           } else {
             throw 'An error occurred logging in: ' + resp.reason;
           }
-          if (typeof options.complete === "function") {
-            options.complete();
-          }
+          if (options.complete) options.complete();
         }
       });
     },
@@ -251,6 +249,7 @@
           } else {
             throw 'An error occurred logging out: ' + resp.reason;
           }
+          if (options.complete) options.complete();
         }
       });
     },