aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-09 08:26:33 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-09 08:26:33 -0400
commite827a0e280c5652a3f49cea9abf35ccbb9939bda (patch)
tree9803e901bda8fe7cf092bc1b0de5693d5c7b9851 /ui/jquery.ui.datepicker.js
parentf8f38e86c495f91e49b40006d4b8ad80c4b4f9eb (diff)
downloadjquery-ui-e827a0e280c5652a3f49cea9abf35ccbb9939bda.tar.gz
jquery-ui-e827a0e280c5652a3f49cea9abf35ccbb9939bda.zip
Revert "Datepicker: Added onSelect.apply() call to _setDate method if onSelect is defined. Fixed #6264 - Datepicker: onSelect does not fire when setDate is called"
This reverts commit effdd5d19c534f8445ebafe4212278c4366b0041.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index b125f9457..ade580220 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -1391,14 +1391,6 @@ $.extend(Datepicker.prototype, {
if (inst.input) {
inst.input.val(clear ? '' : this._formatDate(inst));
}
-
- var onSelect = this._get(inst, 'onSelect');
- if (onSelect) {
- var dateStr = this._formatDate(inst);
-
- // trigger custom callback
- onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);
- }
},
/* Retrieve the date(s) directly. */