Emilio Cobos Álvarez b25f7c28a6 Bug 1706625 - Merge datetimebox.js implementations into one. r=Gijs
This will be useful to implement datetime-local. We add shouldShowTime()
and shouldShowDate(), which right now are exclusive (but datetime-local
will return true for both).

It also removes a fair amount of copy-pasta between the two existing
implementations.

This should have no behavior change. Fer did the initial version of this
patch, though I have basically re-done from scratch it to remove all the
FooImpl gunk completely, and to ensure it had no behavior change (Fer's
patch failed a date picker test).

Co-Authored-By: Fernando García <fernando.garciagomez.01@telefonica.com>

Differential Revision: https://phabricator.services.mozilla.com/D112967
2021-04-22 09:25:08 +00:00
..