fossilesque@mander.xyz to Programmer HumorEnglish · 3 days agoErrorsmander.xyzimagemessage-square34fedilinkarrow-up1719arrow-down114
arrow-up1705arrow-down1imageErrorsmander.xyzfossilesque@mander.xyz to Programmer HumorEnglish · 3 days agomessage-square34fedilink
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