couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <...@git.apache.org>
Subject [GitHub] couchdb-fauxton pull request: fix update-seq
Date Mon, 09 Mar 2015 10:45:49 GMT
Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/312#discussion_r26026259
  
    --- 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 --
    
    Sure I can, but should I if function will guarantee to return a single type? (;


---
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.
---

Mime
View raw message