Zebra_Datepicker
Zebra_Datepicker copied to clipboard
Fix jQuery 3+ warnings
When using datepicker with jQuery 3+, jquery-migrate prints several warnings about deprecations in the code:
- JQMIGRATE: jQuery.fn.removeAttr no longer sets boolean properties: readonly (src)
Possible solution: replace
$element.removeAttr('readonly');
with$element.prop('readonly', false);
(src) - JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray (29 occurrences, like this)
Possible solution: replace all
$.isArray
withArray.isArray
(src) - JQMIGRATE: jQuery.trim is deprecated; use String.prototype.trim (5 occurrences, like)
Possible solution: replace all
$.trim
withtext.trim()
orString.prototype.trim.call( text == null ? '' : text )
(src) - JQMIGRATE: jQuery.fn.mousedown() event shorthand is deprecated (src)
Possible solution: replace
el.mousedown(function() {...})
withel.on('mousedown', function() {...})
(src)
Thanks in advance!
This library is compatible with IE 6 :)
Therefore, the only thing that I could change is the mousedown
related issue
I was thinking about letting IE6 go but I don't think I am ready yet :)
Ahh.. Sometimes you just have to let it go, you know 😅
Nevertheless, somehow I missed that, thank you for quick reply!
I thought more about it and I will make a release next week from which I will be removing the IE6 related things
That sounds even better!
better later than never! :) stefankiv thanks for your input on this!