From 006b6ee25fd68734d606bddd91ae4e606e1de765 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Tue, 1 Feb 2011 02:28:10 +0000 Subject: [PATCH] Applying conventions and some JSLint good practices in core modules. --- resources/jquery/jquery.tabIndex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/jquery/jquery.tabIndex.js b/resources/jquery/jquery.tabIndex.js index 784f8c9938..9d4da4d9a0 100644 --- a/resources/jquery/jquery.tabIndex.js +++ b/resources/jquery/jquery.tabIndex.js @@ -10,7 +10,7 @@ $.fn.firstTabIndex = function() { var minTabIndex = 0; $(this).find( '[tabindex]' ).each( function() { - var tabIndex = parseInt( $(this).attr( 'tabindex' ) ); + var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 ); if ( tabIndex > minTabIndex ) { minTabIndex = tabIndex; } @@ -26,7 +26,7 @@ $.fn.firstTabIndex = function() { $.fn.lastTabIndex = function() { var maxTabIndex = 0; $(this).find( '[tabindex]' ).each( function() { - var tabIndex = parseInt( $(this).attr( 'tabindex' ) ); + var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 ); if ( tabIndex > maxTabIndex ) { maxTabIndex = tabIndex; } -- 2.20.1