From 68a307c5479beb02a1faf3492cab115d1e957aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 20 Dec 2012 09:49:18 -0500 Subject: [PATCH 1/2] Build: Added notStrictEqual to the globals list for unit tests. --- tests/.jshintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/.jshintrc b/tests/.jshintrc index 59ae11530..44e23699f 100644 --- a/tests/.jshintrc +++ b/tests/.jshintrc @@ -22,6 +22,7 @@ "Globalize", "module", "notEqual", + "notStrictEqual", "ok", "QUnit", "start", From e21fc296102c2b8b159404c378cf39470da9a13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 20 Dec 2012 10:12:40 -0500 Subject: [PATCH 2/2] Datepicker: Remove data event handlers from the dark ages. --- ui/jquery.ui.datepicker.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 4ab1fa201..e3a9286dd 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -175,12 +175,7 @@ $.extend(Datepicker.prototype, { } this._attachments(input, inst); input.addClass(this.markerClassName).keydown(this._doKeyDown). - 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); - }); + keypress(this._doKeyPress).keyup(this._doKeyUp); this._autoSize(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) @@ -271,12 +266,7 @@ $.extend(Datepicker.prototype, { if (divSpan.hasClass(this.markerClassName)) { return; } - 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); - }); + divSpan.addClass(this.markerClassName).append(inst.dpDiv); $.data(target, PROP_NAME, inst); this._setDate(inst, this._getDefaultDate(inst), true); this._updateDatepicker(inst);