Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 885151731C for ; Fri, 31 Oct 2014 03:00:58 +0000 (UTC) Received: (qmail 56109 invoked by uid 500); 31 Oct 2014 03:00:58 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 55967 invoked by uid 500); 31 Oct 2014 03:00:58 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 55777 invoked by uid 99); 31 Oct 2014 03:00:58 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 03:00:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id DC906A05B99; Fri, 31 Oct 2014 03:00:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Date: Fri, 31 Oct 2014 03:01:05 -0000 Message-Id: <7e0909d490644ee5898b741c4212510e@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [9/9] jquery-couch commit: updated refs/heads/master to ec5fa13 Add complete for login, and use code style of the lib Signed-off-by: Alexander Shorin 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 Authored: Mon Jun 16 22:08:38 2014 +0200 Committer: Alexander Shorin 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(); } }); },