WebThrottle-EX is a web based (html,jQuery,JavaScript) Controller/Throttle for DCC-EX EX-CommandStations
GNU General Public License v3.0
21
stars
13
forks
source link
Fixes error when using map select (autocomplete) #70
Closed
dcyoung-dev closed 2 years ago
What?
I have added/removed/altered:
getMapData()
JSON.parse(window.localStorage.getItem('mapData')
withgetMapData()
const
to methodsWhy?
I am doing this because:
getMapData
would returnundefined
the if no maps had been stored locally.undefined
was returned.const
s were added to ensure variables were being scoped to their functions.Acceptance Criteria
I can call this done when:
Deployment risks
ES6
syntax. This is widely supported by modern browsers.