Skip to content

Commit b2e5141

Browse files
authored
[Backport 1.9] COMPASS 1727: Remove onQueryChanged listeners from onActivated (#1208) (#1209)
1 parent 9a49140 commit b2e5141

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

src/internal-packages/crud/lib/store/insert-document-store.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const InsertDocumentStore = Reflux.createStore({
1313
*/
1414
init: function() {
1515
this.filter = {};
16-
this.listenToExternalStore('Query.ChangedStore', this.onQueryChanged.bind(this));
1716
this.listenTo(Actions.insertDocument, this.insertDocument);
1817
this.NamespaceStore = app.appRegistry.getStore('App.NamespaceStore');
1918
},

src/internal-packages/crud/lib/store/load-more-documents-store.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const LoadMoreDocumentsStore = Reflux.createStore({
2424
this.counter = 0;
2525

2626
this.NamespaceStore = app.appRegistry.getStore('App.NamespaceStore');
27-
this.listenToExternalStore('Query.ChangedStore', this.onQueryChanged.bind(this));
2827
this.listenTo(Actions.fetchNextDocuments, this.fetchNextDocuments.bind(this));
2928
},
3029

src/internal-packages/crud/lib/store/reset-document-list-store.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const ResetDocumentListStore = Reflux.createStore({
2222
this.project = null;
2323
this.ns = '';
2424

25-
// listen for query changes
26-
this.listenToExternalStore('Query.ChangedStore', this.onQueryChanged.bind(this));
27-
2825
Actions.refreshDocuments.listen(this.reset.bind(this));
2926
},
3027

src/internal-packages/explain/lib/stores/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const CompassExplainStore = Reflux.createStore({
3434
},
3535

3636
onActivated(appRegistry) {
37-
appRegistry.getStore('Query.ChangedStore').listen(this.onQueryChanged.bind(this));
3837
appRegistry.getStore('Indexes.IndexStore').listen(this.indexesChanged.bind(this));
3938
appRegistry.getStore('App.NamespaceStore').listen(this.onNamespaceChanged.bind(this));
4039
this.CollectionStore = appRegistry.getStore('App.CollectionStore');

src/internal-packages/schema/lib/store/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const SchemaStore = Reflux.createStore({
5151
},
5252

5353
onActivated(appRegistry) {
54-
appRegistry.getStore('Query.ChangedStore').listen(this.onQueryChanged.bind(this));
5554
appRegistry.getStore('App.NamespaceStore').listen(this.onNamespaceChanged.bind(this));
5655
},
5756

0 commit comments

Comments
 (0)