Skip to content

Commit

Permalink
Tabs does not work properly for duplicate names
Browse files Browse the repository at this point in the history
  • Loading branch information
habibutsu committed Aug 14, 2015
1 parent 3d002c7 commit 6aba684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/definitions/modules/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ $.fn.tab = function(parameters) {
tabPath = tabPath || activeTabPath;
tabPathArray = module.utilities.pathToArray(tabPath);
lastTab = module.utilities.last(tabPathArray);
$fullPathTab = $tabs.filter('[data-' + metadata.tab + '="' + lastTab + '"]');
$simplePathTab = $tabs.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
$fullPathTab = $tabs.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
$simplePathTab = $tabs.filter('[data-' + metadata.tab + '="' + lastTab + '"]');
return ($fullPathTab.length > 0)
? $fullPathTab
: $simplePathTab
Expand Down

0 comments on commit 6aba684

Please sign in to comment.