mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Remove unused _getBorders() method.
This commit is contained in:
parent
cb42ba6fd6
commit
e11cfce801
12
ui/jquery.ui.datepicker.js
vendored
12
ui/jquery.ui.datepicker.js
vendored
@ -823,18 +823,6 @@ $.extend(Datepicker.prototype, {
|
||||
}
|
||||
},
|
||||
|
||||
/* Retrieve the size of left and top borders for an element.
|
||||
* @param elem (jQuery object) the element of interest
|
||||
* @return (number[2]) the left and top borders
|
||||
*/
|
||||
_getBorders: function(elem) {
|
||||
var convert = function(value) {
|
||||
return {thin: 1, medium: 2, thick: 3}[value] || value;
|
||||
};
|
||||
return [parseFloat(convert(elem.css("border-left-width"))),
|
||||
parseFloat(convert(elem.css("border-top-width")))];
|
||||
},
|
||||
|
||||
/* Check positioning to remain on screen. */
|
||||
_checkOffset: function(inst, offset, isFixed) {
|
||||
var dpWidth = inst.dpDiv.outerWidth(),
|
||||
|
Loading…
Reference in New Issue
Block a user