beyang (Beyang Liu)

Member since
beyang

Recent Docs Activity

View all activity
Page Date Comment

A re-introduction to JavaScript (JS tutorial)


I am no JS expert, but it seems like the memory leak example does not actually leak. The 'this' variable is bound when the function is called, not when it's defined. To have a circular reference, wouldn't the function have to reference 'el' directly?

Mozilla