You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by me...@apache.org on 2013/03/22 13:19:49 UTC
[5/6] git commit: updated refs/heads/1720-move-to-backbone-1.0 to
89bc034
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/a14731f5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/a14731f5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/a14731f5
Branch: refs/heads/1720-move-to-backbone-1.0
Commit: a14731f5debecd2b5329eb4bd7ab95082f2e064b
Parents: 85b4096
Author: Simon Metson <si...@cloudant.com>
Authored: Fri Mar 22 12:17:37 2013 +0000
Committer: Simon Metson <si...@cloudant.com>
Committed: Fri Mar 22 12:17:37 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/a14731f5/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;
}
},