couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to 42493ee
Date Thu, 28 May 2015 12:39:29 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 9d0f67903 -> 42493ee35


Revert "Databases component and test fixes"

This reverts commit 1739a8e56e1f5c242aba201d69c03fd60fa5d46f.


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

Branch: refs/heads/master
Commit: 42493ee3556649e72d75ded29c7b2c494663f94c
Parents: 9d0f679
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Thu May 28 14:43:12 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Thu May 28 14:43:12 2015 +0200

----------------------------------------------------------------------
 app/addons/databases/stores.js                      | 6 +-----
 app/addons/databases/tests/componentsSpec.react.jsx | 3 ---
 2 files changed, 1 insertion(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/42493ee3/app/addons/databases/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/stores.js b/app/addons/databases/stores.js
index cdae6df..4da6593 100644
--- a/app/addons/databases/stores.js
+++ b/app/addons/databases/stores.js
@@ -20,11 +20,7 @@ define([
   var DatabasesStore = FauxtonAPI.Store.extend({
 
     initialize: function () {
-      this.reset();
-    },
-
-    reset: function () {
-      this._collection = new Backbone.Collection();
+      this._collection = {};
       this._loading = false;
       this._promptVisible = false;
     },

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/42493ee3/app/addons/databases/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/componentsSpec.react.jsx b/app/addons/databases/tests/componentsSpec.react.jsx
index 0fe4ded..ce71390 100644
--- a/app/addons/databases/tests/componentsSpec.react.jsx
+++ b/app/addons/databases/tests/componentsSpec.react.jsx
@@ -204,9 +204,6 @@ define([
       // because of the need to override typeahead, this just does a spy on the componentDidUpdate
method to ensure
       // it gets called
       assert.ok(spy.calledOnce);
-
-      // reset the store for future use
-      Stores.databasesStore.reset();
     });
   });
 


Mime
View raw message