Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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