mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Remove data event handlers from the dark ages.
This commit is contained in:
parent
68a307c547
commit
e21fc29610
14
ui/jquery.ui.datepicker.js
vendored
14
ui/jquery.ui.datepicker.js
vendored
@ -175,12 +175,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
}
|
}
|
||||||
this._attachments(input, inst);
|
this._attachments(input, inst);
|
||||||
input.addClass(this.markerClassName).keydown(this._doKeyDown).
|
input.addClass(this.markerClassName).keydown(this._doKeyDown).
|
||||||
keypress(this._doKeyPress).keyup(this._doKeyUp).
|
keypress(this._doKeyPress).keyup(this._doKeyUp);
|
||||||
bind("setData.datepicker", function(event, key, value) {
|
|
||||||
inst.settings[key] = value;
|
|
||||||
}).bind("getData.datepicker", function(event, key) {
|
|
||||||
return this._get(inst, key);
|
|
||||||
});
|
|
||||||
this._autoSize(inst);
|
this._autoSize(inst);
|
||||||
$.data(target, PROP_NAME, inst);
|
$.data(target, PROP_NAME, inst);
|
||||||
//If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
|
//If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
|
||||||
@ -271,12 +266,7 @@ $.extend(Datepicker.prototype, {
|
|||||||
if (divSpan.hasClass(this.markerClassName)) {
|
if (divSpan.hasClass(this.markerClassName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
divSpan.addClass(this.markerClassName).append(inst.dpDiv).
|
divSpan.addClass(this.markerClassName).append(inst.dpDiv);
|
||||||
bind("setData.datepicker", function(event, key, value){
|
|
||||||
inst.settings[key] = value;
|
|
||||||
}).bind("getData.datepicker", function(event, key){
|
|
||||||
return this._get(inst, key);
|
|
||||||
});
|
|
||||||
$.data(target, PROP_NAME, inst);
|
$.data(target, PROP_NAME, inst);
|
||||||
this._setDate(inst, this._getDefaultDate(inst), true);
|
this._setDate(inst, this._getDefaultDate(inst), true);
|
||||||
this._updateDatepicker(inst);
|
this._updateDatepicker(inst);
|
||||||
|
Loading…
Reference in New Issue
Block a user