couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [9/9] jquery-couch commit: updated refs/heads/master to ec5fa13
Date Fri, 31 Oct 2014 03:01:05 GMT
Add complete for login, and use code style of the lib

Signed-off-by: Alexander Shorin <kxepal@apache.org>


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/ec5fa139
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/ec5fa139
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/ec5fa139

Branch: refs/heads/master
Commit: ec5fa139462be3160f8f181215cfeb73591c30fa
Parents: dff79df
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Mon Jun 16 22:08:38 2014 +0200
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Thu Jul 31 19:19:24 2014 +0400

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


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/ec5fa139/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