|
@@ -94,6 +94,9 @@ const storeConfig: GuideStoreDefinition = {
|
|
browserHistoryListener: null,
|
|
browserHistoryListener: null,
|
|
|
|
|
|
init() {
|
|
init() {
|
|
|
|
+ // XXX: Do not use `this.listenTo` in this store. We avoid usage of reflux
|
|
|
|
+ // listeners due to their leaky nature in tests.
|
|
|
|
+
|
|
this.state = defaultState;
|
|
this.state = defaultState;
|
|
|
|
|
|
window.addEventListener('load', this.onURLChange, false);
|
|
window.addEventListener('load', this.onURLChange, false);
|