What is the proper name of the following pitfall? I see a lit of people make this mistake, so I'd like to be able to refer to it by name:
for (var i = 0; i < imgs.length; i ++) {
imgs[i].someFunc = function() {
// var i not a closure variable
console.log(imgs[i]);
};
}