Permalink
Browse files

Add check that hash is not equal to "#" in matchInPanel (breaks jQuer…

…y in an instance where the hash = "#?query=query")
  • Loading branch information...
1 parent 54e9668 commit 1a3bf474c68e071764142ede07463b3321bba4b8 @localpcguy committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jquery.easytabs.js
View
@@ -279,7 +279,7 @@
// Find panel with `id` matching value
plugin.matchInPanel = function(hash) {
- return ( hash ? plugin.panels.filter(':has(' + hash + ')').first() : [] );
+ return ( hash && hash !== "#" ? plugin.panels.filter(':has(' + hash + ')').first() : [] );
};
// Select matching tab when URL hash changes

0 comments on commit 1a3bf47

Please sign in to comment.