fossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 6 days agoErrorsmander.xyzexternal-linkmessage-square31fedilinkarrow-up122arrow-down10cross-posted to: [email protected]
arrow-up122arrow-down1external-linkErrorsmander.xyzfossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 6 days agomessage-square31fedilinkcross-posted to: [email protected]
minus-squaremaster5o1@lemmy.nzlinkfedilinkarrow-up0·edit-26 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