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

index 4d6d682f54cfc60722ad1209fed58777f00145c8..bc2caab29dd99a468fd903c79d297c9d9a7a9a0b 100644 (file)
@@ -240,22 +240,4 @@ test( "remove", function() {
        equal( element.tabs( "option", "active" ), false );
 });
 
-asyncTest( "abort", function() {
-       expect( 1 );
-
-       var element = $( "#tabs2" ).tabs();
-       element.one( "tabsbeforeload", function( event, ui ) {
-               ui.jqXHR.error(function( jqXHR, status ) {
-                       equal( status, "abort", "aborted" );
-                       start();
-               });
-       });
-       // prevent IE from caching the request, so that it won't resolve before we call abort
-       element.find( ".ui-tabs-nav li:eq(2) .ui-tabs-anchor" ).attr( "href", function( href ) {
-               return href + "?" + (+ new Date());
-       });
-       element.tabs( "option", "active", 2 );
-       element.tabs( "abort" );
-});
-
 }( jQuery ) );
index 45ac8e81c116ae6eb34dd376a2cbc9579a162996..8d6e3bfa72740001dc11984b53862dcc315bffd1 100644 (file)
@@ -854,15 +854,6 @@ if ( $.uiBackCompat !== false ) {
                };
        };
 
-       // abort method
-       $.widget( "ui.tabs", $.ui.tabs, {
-               abort: function() {
-                       if ( this.xhr ) {
-                               this.xhr.abort();
-                       }
-               }
-       });
-
        // add/remove methods and events
        $.widget( "ui.tabs", $.ui.tabs, {
                options: {