I forgot the commas in the object literal: David-Sarah Hopwood wrote: > function makeGui(doc) { > /*const*/ var title = doc.getElementById("title"), > url = doc.getElementById("url"), > input = doc.getElementById("input"); > > return Object.freeze({ get title() { return title.value; }, set title(newValue) { title.value = newValue; }, get url() { return url.value; }, set url(newValue) { url.value = newValue; }, get input() { return input.value; }, > set input(newValue) { input.value = newValue; } > }); > }
-- David-Sarah Hopwood ⚥ http://davidsarah.livejournal.com
signature.asc
Description: OpenPGP digital signature
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss