3 ms·
For the second example on the memory leak section (https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript#Memory_leaks https://
by Nican 11y ago
For the second example on the memory leak section (https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript#Memory_leaks https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re...), wouldn't just changing "el.style" to "this.style" fix the memory leak?