Message from JavaScript discussions

October 2017

— How to re-reload element from variable?

— 

var table_body_channel = $('#thetable tbody'); // this is the element (this element not exist yet)
listData(
table_channel,
table_body_channel
);

in the listData function i am calling table.DataTable({}); then the tbody exists

but in listData when i call table_body_channel its not the correct tbody. how to make it work?

— Nvm, realize i can just pass class name 😄

— Guys, do you know why they decided to make the arrow functions bound to the parent context? I mean, was there a reason for it?

Message permanent page

— What else would it be bound to 🤔

— Well, arrow functions don't have their own this, while normal functions do, right?

— Correct

— So... what was the point of that approach?

— Because when you start something, you dont have anything, so you dont need anything else

— I'm not sure I understood that explanaition lol

— It says it should return inserted nodes, not the parent they came from

— I was in the C++ source and have fully documented the implementation now. No one who wrote docs knew about this.

Message permanent page