fossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 1 year agoErrorsmander.xyzimagemessage-square5linkfedilinkarrow-up17arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up17arrow-down1imageErrorsmander.xyzfossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square5linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squarePika@sh.itjust.workslinkfedilinkEnglisharrow-up0·edit-21 year agoI hate that I noticed the syntax error on line 263 before I realized what the joke was. (at least I assume that 260 contains a function with a callback meaning it is missing the closing parenthesis)
minus-squaremaster5o1@lemmy.nzlinkfedilinkarrow-up1·edit-21 year 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
I hate that I noticed the syntax error on line 263 before I realized what the joke was. (at least I assume that 260 contains a function with a callback meaning it is missing the 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