Compare commits
No commits in common. "c2dab953af181d1830d550140384e6727548a4a0" and "ac9f2bf767f8dd5df7e0ab9eabeb8bcb9c4c1a58" have entirely different histories.
c2dab953af
...
ac9f2bf767
@ -708,16 +708,11 @@ class AppTabbedManager {
|
|||||||
this.switchTab('tasks');
|
this.switchTab('tasks');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Monitor URL changes for app navigation + listen for task events. These
|
// Monitor URL changes for app navigation
|
||||||
// add window-level listeners (popstate, taskCreated/Completed/Updated), so
|
|
||||||
// bind them ONCE for the lifetime of this singleton — initialize() re-runs
|
|
||||||
// on every /app navigation (the `initialized` flag is never set true), and
|
|
||||||
// without this guard each visit stacked another set of window listeners.
|
|
||||||
if (!this._listenersWired) {
|
|
||||||
this._listenersWired = true;
|
|
||||||
this.setupURLMonitoring();
|
this.setupURLMonitoring();
|
||||||
|
|
||||||
|
// Listen for task creation events
|
||||||
this.setupTaskEventListeners();
|
this.setupTaskEventListeners();
|
||||||
}
|
|
||||||
|
|
||||||
// Set initial active tab (only if no task parameter)
|
// Set initial active tab (only if no task parameter)
|
||||||
if (!taskId) {
|
if (!taskId) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user