fossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 2 months agoErrorsmander.xyzimagemessage-square9fedilinkarrow-up18arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up18arrow-down1imageErrorsmander.xyzfossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 2 months agomessage-square9fedilinkcross-posted to: programmer_humor@programming.dev
minus-squaremaster5o1@lemmy.nzlinkfedilinkarrow-up0·edit-22 months 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