From eb4178f81910ec691f0bfe93d6002a76854bdde5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 21 Oct 2012 17:50:13 -0400 Subject: [PATCH] Fixed some jshint errors. --- ui/jquery.ui.effect.js | 2 +- ui/jquery.ui.tabs.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/jquery.ui.effect.js b/ui/jquery.ui.effect.js index 3fb428c1a..8d875746e 100644 --- a/ui/jquery.ui.effect.js +++ b/ui/jquery.ui.effect.js @@ -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' } } diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 0d7f85fbc..05456374d 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -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 ) ); }, -- 2.39.5