qodesmith / datepicker

Get a date with JavaScript! A datepicker with no dependencies.
344 stars 101 forks source link

remove() function #78

Closed Saconov closed 4 years ago

Saconov commented 4 years ago

When using the remove function of any datepicker, the following error occurs:

datepicker.min.js:4 Uncaught (in promise) ReferenceError: prop is not defined at Object.N [as remove] (datepicker.min.js:4)

However, declaring the prob variable within the datepicker.min.js file fixed this issue for me. for(**let** prop in n.remove() or in datepicker.js for (**let** prop in this) delete this[prop].

Seems like somehow the prop variable was not declared.

qodesmith commented 4 years ago

Ahhh, good catch. I'll put up a fix.

qodesmith commented 4 years ago

Done! Version 5.5.0 is out now.