stephencweiss / matilda

See your time in a whole new way. Small, lightweight, magical.
MIT License
1 stars 0 forks source link

viewMode to boolean or enum #20

Open stephencweiss opened 5 years ago

stephencweiss commented 5 years ago

Currently view mode runs the risk of a typo -- update to boolean with clear name (e.g., isEditMode: true) or an enumerable object.

https://stackoverflow.com/questions/287903/what-is-the-preferred-syntax-for-defining-enums-in-javascript https://stijndewitt.com/2014/01/26/enums-in-javascript/