minus-squaremaster5o1@lemmy.nztoProgrammer Humor@lemmy.ml•Errorslinkfedilinkarrow-up10·edit-211 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 linkfedilink
minus-squaremaster5o1@lemmy.nztoProgrammer Humor@lemmy.ml•In retrospect I should've stayed in the 90slinkfedilinkarrow-up7·22 days agoIdgi. linkfedilink
master5o1@lemmy.nz to cats@lemmy.world · 7 months agoJames lemmy.nzimagemessage-square1fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageJames lemmy.nzmaster5o1@lemmy.nz to cats@lemmy.world · 7 months agomessage-square1fedilink
minus-squaremaster5o1@lemmy.nztoProgrammer Humor@lemmy.ml•Daylight saving creator left the chat....linkfedilinkarrow-up1·10 months agoAt least we don’t use the Roman method of varied hour lengths depending in the time of day and times of year. linkfedilink
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