mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fixed some jshint errors.
This commit is contained in:
parent
8b76684a92
commit
eb4178f819
2
ui/jquery.ui.effect.js
vendored
2
ui/jquery.ui.effect.js
vendored
@ -619,7 +619,7 @@ each( stepHooks, function( i, hook ) {
|
||||
}
|
||||
try {
|
||||
elem.style[ hook ] = value;
|
||||
} catch( value ) {
|
||||
} catch( error ) {
|
||||
// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
|
||||
}
|
||||
}
|
||||
|
6
ui/jquery.ui.tabs.js
vendored
6
ui/jquery.ui.tabs.js
vendored
@ -895,16 +895,16 @@ if ( $.uiBackCompat !== false ) {
|
||||
_ajaxSettings: function( anchor, event, ui ) {
|
||||
var ajaxOptions = this.options.ajaxOptions;
|
||||
return $.extend( {}, ajaxOptions, {
|
||||
error: function( xhr, s, e ) {
|
||||
error: function( xhr, status ) {
|
||||
try {
|
||||
// Passing index avoid a race condition when this method is
|
||||
// called after the user has selected another tab.
|
||||
// Pass the anchor that initiated this request allows
|
||||
// loadError to manipulate the tab content panel via $(a.hash)
|
||||
ajaxOptions.error(
|
||||
xhr, s, ui.tab.closest( "li" ).index(), ui.tab[ 0 ] );
|
||||
xhr, status, ui.tab.closest( "li" ).index(), ui.tab[ 0 ] );
|
||||
}
|
||||
catch ( e ) {}
|
||||
catch ( error ) {}
|
||||
}
|
||||
}, this._superApply( arguments ) );
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user