Removed an unnecessary "start" variable in the constructor of the JavaScript MonthTab class.

This commit is contained in:
依瑪貓 2023-03-25 08:02:52 +08:00
parent 73f5d63f44
commit d5a9e1af18

View File

@ -166,10 +166,9 @@ class MonthTab extends TabPlane {
super(chooser);
const monthChooser = document.getElementById(`${this.prefix}-chooser`);
if (monthChooser !== null) {
let start = monthChooser.dataset.start;
this.#monthChooser = new tempusDominus.TempusDominus(monthChooser, {
restrictions: {
minDate: new Date(start),
minDate: new Date(monthChooser.dataset.start),
},
display: {
inline: true,