User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:126.96.36.199) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/188.8.131.52 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:184.108.40.206) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/220.127.116.11 When a class is defined which uses forEach in one of its methods and you try to use the "this" keyword within that forEach function "this" refers to the window object, whereas the instance of the class is expected. Reproducible: Always Steps to Reproduce: 1. Create a class that has an array property (i.e. put this.aray=) in the constructor. 2. Add another property to the class, (e.g. this.myString="My String") 2. Create a method that loops through that array using forEach 3. Try to access the myString property via this.myString while inside of the function passed to forEach. Actual Results: this.myString is undefined. Expected Results: "My String"