fossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 2 天前Errorsmander.xyzimagemessage-square27fedilinkarrow-up1645arrow-down113cross-posted to: programmer_humor@programming.dev
arrow-up1632arrow-down1imageErrorsmander.xyzfossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 2 天前message-square27fedilinkcross-posted to: programmer_humor@programming.dev
minus-squaremaster5o1@lemmy.nzlinkfedilinkarrow-up9·edit-22 天前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
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