Applying conventions and some JSLint good practices in core modules.
authorKrinkle <krinkle@users.mediawiki.org>
Tue, 1 Feb 2011 02:28:10 +0000 (02:28 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Tue, 1 Feb 2011 02:28:10 +0000 (02:28 +0000)
resources/jquery/jquery.tabIndex.js

index 784f8c9..9d4da4d 100644 (file)
@@ -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;
                }