]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Removed url method. Fixes #7148 - Tabs: Remove url method.
authorScott González <scott.gonzalez@gmail.com>
Thu, 25 Oct 2012 09:28:54 +0000 (05:28 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 25 Oct 2012 09:28:54 +0000 (05:28 -0400)
tests/unit/tabs/tabs_deprecated.js
ui/jquery.ui.tabs.js

index b3db097b97f1dc2ee7c5741a951e92a8569e44c6..49ad5c13ed33bbbbf6737cd5b829ca5fd13a3ef4 100644 (file)
@@ -510,21 +510,6 @@ test( "length", function() {
        equal( $( "#tabs2" ).tabs().tabs( "length" ), 5, "ajax tabs with missing panels" );
 });
 
-test( "url", function() {
-       expect( 2 );
-
-       var element = $( "#tabs2" ).tabs(),
-               anchor = element.find( ".ui-tabs-anchor" ).eq( 3 );
-
-       element.tabs( "url", 3, "data/test2.html" );
-       equal( anchor.attr( "href" ), "data/test2.html", "href was updated" );
-       element.one( "tabsbeforeload", function( event, ui ) {
-               equal( ui.ajaxSettings.url, "data/test2.html", "ajaxSettings.url" );
-               event.preventDefault();
-       });
-       element.tabs( "option", "active", 3 );
-});
-
 asyncTest( "abort", function() {
        expect( 1 );
 
index 77dad0892fe81ef2ac950899f8085bf2f7b0a5d4..bc911139e0fc3045ee36decccecf25c9b7b1b0ba 100644 (file)
@@ -854,13 +854,6 @@ if ( $.uiBackCompat !== false ) {
                };
        };
 
-       // url method
-       $.widget( "ui.tabs", $.ui.tabs, {
-               url: function( index, url ) {
-                       this.anchors.eq( index ).attr( "href", url );
-               }
-       });
-
        // abort method
        $.widget( "ui.tabs", $.ui.tabs, {
                abort: function() {