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:
Scott González 2012-07-11 08:48:03 -04:00
parent b892b72721
commit 8fcbe502ee

View File

@ -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 ) {