You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2014/10/23 09:55:14 UTC
fauxton commit: updated refs/heads/master to 1dadfc1
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 506e81456 -> 1dadfc1ec
Fix hasRendered error
We are getting an error when rendering a view after removing other views
because we are deleting the old selector from the view object
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/1dadfc1e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/1dadfc1e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/1dadfc1e
Branch: refs/heads/master
Commit: 1dadfc1ec76197dff01b7c2c6323c70c3190f001
Parents: 506e814
Author: Garren Smith <ga...@gmail.com>
Authored: Wed Oct 22 19:00:38 2014 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Wed Oct 22 19:00:38 2014 +0200
----------------------------------------------------------------------
app/addons/documents/routes-documents.js | 4 ----
app/core/routeObject.js | 1 +
2 files changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/1dadfc1e/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index 37ec482..8ab96d9 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -347,10 +347,6 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
// clear out anything that was in the lower section
this.removeView("#dashboard-lower-content");
-
- // TODO
-// var apiUrl = this.database.url("app") + "/new_view/" + designDoc;
-// this.rightHeader.updateApiUrl([apiUrl, "docs"]);
},
updateAllDocsFromView: function (event) {
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/1dadfc1e/app/core/routeObject.js
----------------------------------------------------------------------
diff --git a/app/core/routeObject.js b/app/core/routeObject.js
index 1a09298..fc6a244 100644
--- a/app/core/routeObject.js
+++ b/app/core/routeObject.js
@@ -241,6 +241,7 @@ function(FauxtonAPI, Backbone) {
if (_.has(this.views, selector)) {
this.views[selector].remove();
this.views[selector] = null;
+ delete this.views[selector];
}
},