couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From met...@apache.org
Subject [07/10] git commit: updated refs/heads/1720-move-to-backbone-1.0 to 5fcc173
Date Thu, 28 Mar 2013 22:44:48 GMT
fix Databases.Status.updateSeq for the case when a database has received no
updates (e.g. is newly created).


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/55c5c036
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/55c5c036
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/55c5c036

Branch: refs/heads/1720-move-to-backbone-1.0
Commit: 55c5c036944bebe1e3e4d2e35576e56ad5c4d377
Parents: 687b74b
Author: Simon Metson <simon+github@cloudant.com>
Authored: Thu Mar 21 10:25:08 2013 +0000
Committer: Simon Metson <metson@apache.org>
Committed: Thu Mar 28 12:23:11 2013 +0000

----------------------------------------------------------------------
 src/fauxton/app/modules/databases/resources.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/55c5c036/src/fauxton/app/modules/databases/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/databases/resources.js b/src/fauxton/app/modules/databases/resources.js
index e5d3fae..59dd179 100644
--- a/src/fauxton/app/modules/databases/resources.js
+++ b/src/fauxton/app/modules/databases/resources.js
@@ -104,8 +104,10 @@ function(app, FauxtonAPI, Documents) {
       var updateSeq = this.get("update_seq");
       if (full || (typeof(updateSeq) === 'number')) {
         return updateSeq;
-      } else {
+      } else if (updateSeq) {
         return updateSeq.split('-')[0];
+      } else {
+        return 0;
       }
     },
 


Mime
View raw message