t1m0n / air-datepicker

Lightweight, dependency-free JavaScript datepicker.
https://air-datepicker.com
MIT License
2.62k stars 1.37k forks source link

jQuery dependency #2

Closed bbenezech closed 8 years ago

bbenezech commented 8 years ago

I feel it's a shame you used jQuery for an IE10+ plugin today. (I do not include it anymore in my projects)

Is there any particular pb you encountered that jQuery helped you solve or did you use it out of habit?

For ref. http://youmightnotneedjquery.com/

Sorry if I sound rude, I'm mostly curious.

Looks awesome and well documented with a nice API.

t1m0n commented 8 years ago

Well you right, I could write it without using jQuery, but then I had to write all these function for add-remove class (.classList for multiple elems), event delegation, object extend, triggering custom events etc. jQ makes things simple.

Maybe in future I'll return to this issue, but not today.

Thanks for your comment.

bbenezech commented 8 years ago

Fair enough! Thanks for your time.

zoxon commented 5 years ago

@t1m0n Maybe the time has come? Just use vanilla javscript api, and peoples who need support old browser can use polyfill/ponyfill

t1m0n commented 5 years ago

@zoxon It has definitely come, I hope there will be opportunity to remove jQuery from calendar in near time.

zoxon commented 5 years ago

@t1m0n That's good news. If you need help, I have a lot of experience rewriting from jQuery to vanilla JavaScript

t1m0n commented 5 years ago

@zoxon thanks for the offer of help, but I'd like to do it myself