Skip to content

Commit

Permalink
Merge pull request #3 from chinuy/master
Browse files Browse the repository at this point in the history
check if st > tabs.length, which causes problem
  • Loading branch information
techlab committed Nov 6, 2015
2 parents 4b1b2db + afcc4f0 commit a9dc731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jquery.smartTab.js
Expand Up @@ -47,7 +47,8 @@
var stt = getTabState();
if(stt) st = stt;
}
st = (st) ? st : 0;
if(!st || st > tabs.length)
st = 0;
showTab(st);
}

Expand Down

0 comments on commit a9dc731

Please sign in to comment.