mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
c9fbb763ab
commit
fe5534b347
@ -30,7 +30,8 @@ return $.extend( $.expr[ ":" ], {
|
|||||||
return !!$.data( elem, dataName );
|
return !!$.data( elem, dataName );
|
||||||
};
|
};
|
||||||
} ) :
|
} ) :
|
||||||
// support: jQuery <1.8
|
|
||||||
|
// Support: jQuery <1.8
|
||||||
function( elem, i, match ) {
|
function( elem, i, match ) {
|
||||||
return !!$.data( elem, match[ 3 ] );
|
return !!$.data( elem, match[ 3 ] );
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
} ( function( $ ) {
|
} ( function( $ ) {
|
||||||
|
|
||||||
// selectors
|
// Selectors
|
||||||
$.ui.focusable = function( element, hasTabindex ) {
|
$.ui.focusable = function( element, hasTabindex ) {
|
||||||
var map, mapName, img,
|
var map, mapName, img,
|
||||||
nodeName = element.nodeName.toLowerCase();
|
nodeName = element.nodeName.toLowerCase();
|
||||||
@ -42,7 +42,8 @@ $.ui.focusable = function( element, hasTabindex ) {
|
|||||||
"a" === nodeName ?
|
"a" === nodeName ?
|
||||||
element.href || hasTabindex :
|
element.href || hasTabindex :
|
||||||
hasTabindex ) &&
|
hasTabindex ) &&
|
||||||
// the element and all of its ancestors must be visible
|
|
||||||
|
// The element and all of its ancestors must be visible
|
||||||
visible( element );
|
visible( element );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
2
ui/jquery-1-7.js
vendored
2
ui/jquery-1-7.js
vendored
@ -24,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
}( function( $ ) {
|
}( function( $ ) {
|
||||||
|
|
||||||
// support: jQuery 1.7 only
|
// Support: jQuery 1.7 only
|
||||||
// Not a great way to check versions, but since we only support 1.7+ and only
|
// Not a great way to check versions, but since we only support 1.7+ and only
|
||||||
// need to detect <1.8, this is a simple check that should suffice. Checking
|
// need to detect <1.8, this is a simple check that should suffice. Checking
|
||||||
// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
|
// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
|
||||||
|
Loading…
Reference in New Issue
Block a user