|
16 | 16 | $.extend($.ui, { datepicker: { version: "@VERSION" } });
|
17 | 17 |
|
18 | 18 | var PROP_NAME = "datepicker",
|
19 |
| - dpuuid = new Date().getTime(), |
20 | 19 | instActive;
|
21 | 20 |
|
22 | 21 | function getZindex( elem ) {
|
@@ -1580,27 +1579,27 @@ $.extend(Datepicker.prototype, {
|
1580 | 1579 | inst.dpDiv.find("[data-handler]").map(function () {
|
1581 | 1580 | var handler = {
|
1582 | 1581 | prev: function () {
|
1583 |
| - window["DP_jQuery_" + dpuuid].datepicker._adjustDate(id, -stepMonths, "M"); |
| 1582 | + $.datepicker._adjustDate(id, -stepMonths, "M"); |
1584 | 1583 | },
|
1585 | 1584 | next: function () {
|
1586 |
| - window["DP_jQuery_" + dpuuid].datepicker._adjustDate(id, +stepMonths, "M"); |
| 1585 | + $.datepicker._adjustDate(id, +stepMonths, "M"); |
1587 | 1586 | },
|
1588 | 1587 | hide: function () {
|
1589 |
| - window["DP_jQuery_" + dpuuid].datepicker._hideDatepicker(); |
| 1588 | + $.datepicker._hideDatepicker(); |
1590 | 1589 | },
|
1591 | 1590 | today: function () {
|
1592 |
| - window["DP_jQuery_" + dpuuid].datepicker._gotoToday(id); |
| 1591 | + $.datepicker._gotoToday(id); |
1593 | 1592 | },
|
1594 | 1593 | selectDay: function () {
|
1595 |
| - window["DP_jQuery_" + dpuuid].datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this); |
| 1594 | + $.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this); |
1596 | 1595 | return false;
|
1597 | 1596 | },
|
1598 | 1597 | selectMonth: function () {
|
1599 |
| - window["DP_jQuery_" + dpuuid].datepicker._selectMonthYear(id, this, "M"); |
| 1598 | + $.datepicker._selectMonthYear(id, this, "M"); |
1600 | 1599 | return false;
|
1601 | 1600 | },
|
1602 | 1601 | selectYear: function () {
|
1603 |
| - window["DP_jQuery_" + dpuuid].datepicker._selectMonthYear(id, this, "Y"); |
| 1602 | + $.datepicker._selectMonthYear(id, this, "Y"); |
1604 | 1603 | return false;
|
1605 | 1604 | }
|
1606 | 1605 | };
|
@@ -2065,8 +2064,4 @@ $.datepicker.initialized = false;
|
2065 | 2064 | $.datepicker.uuid = new Date().getTime();
|
2066 | 2065 | $.datepicker.version = "@VERSION";
|
2067 | 2066 |
|
2068 |
| -// Workaround for #4055 |
2069 |
| -// Add another global to avoid noConflict issues with inline event handlers |
2070 |
| -window["DP_jQuery_" + dpuuid] = $; |
2071 |
| - |
2072 | 2067 | })(jQuery);
|
0 commit comments