Oops, I didn't notice it: you have to pass the `i` variable too: for ( var i in properties ) { (function(i){
That's why you need the closure at all. Without that you will get the last property from all getters. The reference of `this` will always change if you put it in an additional function, doesn't matter if it's inside an instantiated object. Well, you can call that either design error or feature too :) On Dec 18, 4:18 pm, Pablo Fernandez <fernandezpabl...@gmail.com> wrote: > another thing... why inside the anonymous function 'this' refers to > 'window' ?? it's totally misleading...