function outer(a, b) {
a.addEventListener('click', function inner(ev) {
console.log(ev);
});
}
Will the event listener function in the example above still keep a reference to the [[scope]] of the outer function and cause a closure, even though the inner function doesn't explicitly mention any variables from the outside?
Will the context holding variables 'a' and 'b' still be kept in memory as long as the event listener function exists?