...
|
...
|
@@ -21,12 +21,11 @@ tab.prototype = { |
|
|
|
|
|
|
|
|
var pattern = /tab=.*?(?=&&)/gi,
|
|
|
tab = null,
|
|
|
tab = pattern.exec(location.hash),
|
|
|
index = null;
|
|
|
|
|
|
|
|
|
if (location.hash != '') {
|
|
|
tab = pattern.exec(location.hash) ? pattern.exec(location.hash)[0] : '';
|
|
|
if (tab instanceof Array) {
|
|
|
tab = tab[0];
|
|
|
index = tab.split('=')[1];
|
|
|
}
|
|
|
g.index = index;
|
...
|
...
|
|