couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject fauxton commit: updated refs/heads/master to 1dadfc1
Date Thu, 23 Oct 2014 07:55:14 GMT
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 <garren.smith@gmail.com>
Authored: Wed Oct 22 19:00:38 2014 +0200
Committer: Garren Smith <garren.smith@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];
       }
     },
 


Mime
View raw message