mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Check if jQuery supports inner/outer/Width/Height setters.
(cherry picked from commit 033f83ffeb
)
Conflicts:
ui/jquery.ui.core.js
This commit is contained in:
parent
b892b72721
commit
8fcbe502ee
3
ui/jquery.ui.core.js
vendored
3
ui/jquery.ui.core.js
vendored
@ -131,6 +131,8 @@ $.fn.extend({
|
||||
}
|
||||
});
|
||||
|
||||
// support: jQuery <1.8
|
||||
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
||||
$.each( [ "Width", "Height" ], function( i, name ) {
|
||||
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
||||
type = name.toLowerCase(),
|
||||
@ -174,6 +176,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
|
||||
});
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
// selectors
|
||||
function focusable( element, isTabIndexNotNaN ) {
|
||||
|
Loading…
Reference in New Issue
Block a user