aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-02-12 09:27:54 -0500
committerScott González <scott.gonzalez@gmail.com>2012-02-12 09:27:54 -0500
commitd2d301f074f814871a68e4c386bf619908f188c0 (patch)
treeb449c1186b18274ed1c57ffe81a0a97d905769be
parent41a1472469df35005d04e1a2b5e8b756980a4e7e (diff)
downloadjquery-ui-d2d301f074f814871a68e4c386bf619908f188c0.tar.gz
jquery-ui-d2d301f074f814871a68e4c386bf619908f188c0.zip
Datepicker: Use 'that' instead of 'self'. Partial fix for #5404 - remove uses of 'var self = this;'
-rw-r--r--ui/jquery.ui.datepicker.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 034ad774e..07aeeadd0 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -711,8 +711,7 @@ $.extend(Datepicker.prototype, {
/* Generate the date picker content. */
_updateDatepicker: function(inst) {
- var self = this;
- self.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
+ this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
var borders = $.datepicker._getBorders(inst.dpDiv);
instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
@@ -802,10 +801,10 @@ $.extend(Datepicker.prototype, {
if (this._datepickerShowing) {
var showAnim = this._get(inst, 'showAnim');
var duration = this._get(inst, 'duration');
- var self = this;
+ var that = this;
var postProcess = function() {
$.datepicker._tidyDialog(inst);
- self._curInst = null;
+ that._curInst = null;
};
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed