]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Handle empty hrefs for IE6/7 as invalid. Fixes #5755 - Tabs: tabs with an empty...
authorScott González <scott.gonzalez@gmail.com>
Fri, 3 Sep 2010 17:35:05 +0000 (13:35 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 3 Sep 2010 17:35:05 +0000 (13:35 -0400)
ui/jquery.ui.tabs.js

index 8b63992a5caafbfc2643d3a4f195f54caa9cb15e..2efb062e8a6d127b070e2456e5490efd8f7f7c8c 100644 (file)
@@ -129,7 +129,7 @@ $.widget( "ui.tabs", {
                                self.panels = self.panels.add( self._sanitizeSelector( href ) );
                        // remote tab
                        // prevent loading the page itself if href is just "#"
-                       } else if ( href !== "#" ) {
+                       } else if ( href && href !== "#" ) {
                                // required for restore on destroy
                                $.data( a, "href.tabs", href );