| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
( function( factory ) { |
| 16 |
"use strict"; |
| 17 |
|
| 18 |
if ( typeof define === "function" && define.amd ) { |
| 19 |
|
| 20 |
|
| 21 |
define( [ "jquery", "./version", "./focusable" ], factory ); |
| 22 |
} else { |
| 23 |
|
| 24 |
|
| 25 |
factory( jQuery ); |
| 26 |
} |
| 27 |
} )( function( $ ) { |
| 28 |
"use strict"; |
| 29 |
|
| 30 |
return $.extend( $.expr.pseudos, { |
| 31 |
tabbable: function( element ) { |
| 32 |
var tabIndex = $.attr( element, "tabindex" ), |
| 33 |
hasTabindex = tabIndex != null; |
| 34 |
return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex ); |
| 35 |
} |
| 36 |
} ); |
| 37 |
|
| 38 |
} ); |