mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: avoid !0 == true
This commit is contained in:
parent
66761ebe9a
commit
0f9b9fe1b7
@ -145,10 +145,10 @@ $.widget("ui.tabs", {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!o.selected && o.cookie) {
|
if (typeof o.selected != 'number' && o.cookie) {
|
||||||
o.selected = parseInt(self._cookie(), 10);
|
o.selected = parseInt(self._cookie(), 10);
|
||||||
}
|
}
|
||||||
if (!o.selected && this.$lis.filter('.ui-tabs-selected').length) {
|
if (typeof o.selected != 'number' && this.$lis.filter('.ui-tabs-selected').length) {
|
||||||
o.selected = this.$lis.index(this.$lis.filter('.ui-tabs-selected'));
|
o.selected = this.$lis.index(this.$lis.filter('.ui-tabs-selected'));
|
||||||
}
|
}
|
||||||
o.selected = o.selected || 0;
|
o.selected = o.selected || 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user