Skip to content

Commit 8c329ba

Browse files
authored
fix(tab): hash historytype did not work anymore
Hash historyType (default) was broken since 2.9.0 , because #2158 was only targeted to historyType "state", but did not fetch it.
1 parent 9cfbc56 commit 8c329ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/definitions/modules/tab.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
module.bind.events();
100100

101101
if (settings.history && !initializedHistory) {
102-
module.initializeHistory();
102+
settings.history = module.initializeHistory();
103103
initializedHistory = true;
104104
}
105105

@@ -109,7 +109,7 @@
109109
module.debug('No active tab detected, setting tab active', activeTab);
110110
module.changeTab(activeTab);
111111
}
112-
if (activeTab !== null && settings.history) {
112+
if (activeTab !== null && settings.history && settings.historyType === 'state') {
113113
var autoUpdate = $.address.autoUpdate();
114114
$.address.autoUpdate(false);
115115
$.address.value(activeTab);
@@ -202,6 +202,8 @@
202202
$.address
203203
.bind('change', module.event.history.change)
204204
;
205+
206+
return true;
205207
},
206208

207209
event: {

0 commit comments

Comments
 (0)