Datepicker: Created "option" method, deprecated "change" method.

This commit is contained in:
Marc Grabanski 2008-09-28 16:20:11 +00:00
parent c0f4c0f8ef
commit c1deb3508b

View File

@ -405,7 +405,7 @@ $.extend(Datepicker.prototype, {
@param name object - the new settings to update or
string - the name of the setting to change or
@param value any - the new value for the setting (omit if above is an object) */
_changeDatepicker: function(target, name, value) {
_optionDatepicker: function(target, name, value) {
var settings = name || {};
if (typeof name == 'string') {
settings = {};
@ -429,6 +429,9 @@ $.extend(Datepicker.prototype, {
}
},
// change method deprecated
_changeDatepicker: this._optionDatepicker,
/* Redraw the date picker attached to an input field or division.
@param target element - the target input field or division or span */
_refreshDatepicker: function(target) {