Improved on r73046 by removing asumption of $ === jQuery.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 1 Oct 2010 19:22:06 +0000 (19:22 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Fri, 1 Oct 2010 19:22:06 +0000 (19:22 +0000)
resources/jquery/jquery.tabIndex.js

index 3bce092..3a33dfb 100644 (file)
@@ -5,8 +5,8 @@
  */
 jQuery.fn.firstTabIndex = function() {
        var minTabIndex = 0;
-       $(this).find( '[tabindex]' ).each( function() {
-               var tabIndex = parseInt( $(this).attr( 'tabindex' ) );
+       jQuery(this).find( '[tabindex]' ).each( function() {
+               var tabIndex = parseInt( jQuery(this).attr( 'tabindex' ) );
                if ( tabIndex > minTabIndex ) {
                        minTabIndex = tabIndex;
                }
@@ -20,8 +20,8 @@ jQuery.fn.firstTabIndex = function() {
  */
 jQuery.fn.lastTabIndex = function() {
        var maxTabIndex = 0;
-       $(this).find( '[tabindex]' ).each( function() {
-               var tabIndex = parseInt( $(this).attr( 'tabindex' ) );
+       jQuery(this).find( '[tabindex]' ).each( function() {
+               var tabIndex = parseInt( jQuery(this).attr( 'tabindex' ) );
                if ( tabIndex > maxTabIndex ) {
                        maxTabIndex = tabIndex;
                }