fossilesque to Programmer Humor@lemmy.mlEnglish · 3 days agoErrorsimagemessage-square35fedilinkarrow-up1719arrow-down115cross-posted to: programmer_humor@programming.dev
arrow-up1704arrow-down1imageErrorsfossilesque to Programmer Humor@lemmy.mlEnglish · 3 days agomessage-square35fedilinkcross-posted to: programmer_humor@programming.dev
minus-squaremaster5o1@lemmy.nzlinkfedilinkarrow-up10·edit-23 days agoMy assumption is that it’s setting up an object to map element selectors -> callbacks. var specialElementHandlers = { '#editor': function() { return true; } }; But yeah, could be something as var specialElementHandlers = Object.assign({}, defaultHandlers, { '#editor': function() { return true; } }; // missing closing parenthesis
My assumption is that it’s setting up an object to map element selectors -> callbacks.
var specialElementHandlers = { '#editor': function() { return true; } };
But yeah, could be something as
var specialElementHandlers = Object.assign({}, defaultHandlers, { '#editor': function() { return true; } }; // missing closing parenthesis