Skip to content
Permalink
Browse files

Tabs: avoid !0 == true

  • Loading branch information...
Klaus Hartl
Klaus Hartl committed Feb 22, 2009
1 parent 66761eb commit 0f9b9fe1b750cd9917831569c2494854f0af0228
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.tabs.js
@@ -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);
}
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 = o.selected || 0;

0 comments on commit 0f9b9fe

Please sign in to comment.
You can’t perform that action at this time.