Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C4D617C86 for ; Mon, 9 Mar 2015 09:54:58 +0000 (UTC) Received: (qmail 5728 invoked by uid 500); 9 Mar 2015 09:54:57 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 5659 invoked by uid 500); 9 Mar 2015 09:54:57 -0000 Mailing-List: contact dev-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 dev@couchdb.apache.org Received: (qmail 5648 invoked by uid 99); 9 Mar 2015 09:54:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 09:54:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7D248E0833; Mon, 9 Mar 2015 09:54:57 +0000 (UTC) From: garrensmith To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-fauxton pull request: fix update-seq Content-Type: text/plain Message-Id: <20150309095457.7D248E0833@git1-us-west.apache.org> Date: Mon, 9 Mar 2015 09:54:57 +0000 (UTC) Github user garrensmith commented on a diff in the pull request: https://github.com/apache/couchdb-fauxton/pull/312#discussion_r26023750 --- Diff: app/addons/databases/resources.js --- @@ -137,6 +137,8 @@ function(app, FauxtonAPI, Documents) { var updateSeq = this.get("update_seq"); if (full || (typeof(updateSeq) === 'number')) { return updateSeq; + } else if (typeof(updateSeq) === 'string') { + return updateSeq.split('-')[0]; --- End diff -- I think you can use `_.isNumber` and `_.isString` to be clearer. --- 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. ---