couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [7/8] jquery-couch commit: updated refs/heads/pre-master to 4f5ad10
Date Mon, 16 Jun 2014 21:22:28 GMT
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 <rok@kowalski.gd>
Authored: Mon Jun 16 22:08:38 2014 +0200
Committer: Robert Kowalski <rok@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();
         }
       });
     },


Mime
View raw message