Skip to content

Commit e21fc29

Browse files
committed
Datepicker: Remove data event handlers from the dark ages.
1 parent 68a307c commit e21fc29

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,7 @@ $.extend(Datepicker.prototype, {
175175
}
176176
this._attachments(input, inst);
177177
input.addClass(this.markerClassName).keydown(this._doKeyDown).
178-
keypress(this._doKeyPress).keyup(this._doKeyUp).
179-
bind("setData.datepicker", function(event, key, value) {
180-
inst.settings[key] = value;
181-
}).bind("getData.datepicker", function(event, key) {
182-
return this._get(inst, key);
183-
});
178+
keypress(this._doKeyPress).keyup(this._doKeyUp);
184179
this._autoSize(inst);
185180
$.data(target, PROP_NAME, inst);
186181
//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, {
271266
if (divSpan.hasClass(this.markerClassName)) {
272267
return;
273268
}
274-
divSpan.addClass(this.markerClassName).append(inst.dpDiv).
275-
bind("setData.datepicker", function(event, key, value){
276-
inst.settings[key] = value;
277-
}).bind("getData.datepicker", function(event, key){
278-
return this._get(inst, key);
279-
});
269+
divSpan.addClass(this.markerClassName).append(inst.dpDiv);
280270
$.data(target, PROP_NAME, inst);
281271
this._setDate(inst, this._getDefaultDate(inst), true);
282272
this._updateDatepicker(inst);

0 commit comments

Comments
 (0)