Skip to content
Permalink
Browse files

removed invalid character, added missing semicolon

  • Loading branch information...
Klaus Hartl
Klaus Hartl committed Feb 22, 2009
1 parent 10636ee commit 66761ebe9a9ad8ec34b9d8356e81ed81f8d33ccb
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/ui.tabs.js
@@ -151,14 +151,14 @@ $.widget("ui.tabs", {
if (!o.selected && this.$lis.filter('.ui-tabs-selected').length) {
o.selected = this.$lis.index(this.$lis.filter('.ui-tabs-selected'));
}
o.selected = o.selected || 0;
o.selected = o.selected || 0;
}
else if (o.selected === null) { // usage of null is deprecated, TODO remove in next release
o.selected = -1;
}

// sanity check - default to first tab...
o.selected = ((o.selected >= 0 && this.$tabs[o.selected]) || o.selected < 0) ? o.selected : 0
o.selected = ((o.selected >= 0 && this.$tabs[o.selected]) || o.selected < 0) ? o.selected : 0;

// Take disabling tabs via class attribute from HTML
// into account and update option properly.
@@ -183,7 +183,7 @@ $.widget("ui.tabs", {
};

// load if remote tab else just trigger show event
$.data(this.$tabs[o.selected], 'load.tabs') ? this.load(o.selected, onShow): onShow();
$.data(this.$tabs[o.selected], 'load.tabs') ? this.load(o.selected, onShow) : onShow();

}

0 comments on commit 66761eb

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