corrade-http-templates – Blame information for rev 42

Subversion Repositories:
Rev:
Rev Author Line No. Line
42 office 1 /*!
2 * jQuery UI Tabbable 1.12.1
3 * http://jqueryui.com
4 *
5 * Copyright jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
8 */
9  
10 //>>label: :tabbable Selector
11 //>>group: Core
12 //>>description: Selects elements which can be tabbed to.
13 //>>docs: http://api.jqueryui.com/tabbable-selector/
14  
15 ( function( factory ) {
16 if ( typeof define === "function" && define.amd ) {
17  
18 // AMD. Register as an anonymous module.
19 define( [ "jquery", "./version", "./focusable" ], factory );
20 } else {
21  
22 // Browser globals
23 factory( jQuery );
24 }
25 } ( function( $ ) {
26  
27 return $.extend( $.expr[ ":" ], {
28 tabbable: function( element ) {
29 var tabIndex = $.attr( element, "tabindex" ),
30 hasTabindex = tabIndex != null;
31 return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex );
32 }
33 } );
34  
35 } ) );