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)

Membro desde
beyang

Atividade recente na documentação

Ver toda a atividade
Página Data Comentário

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