You are writing a comment about Strangest JavaScript Bug I've Ever Seen, here is a quick summary:

Recently I ran into a truly incomprehensible bug in Processed Tower Defense, and a friend of mine was equally unable to diagnose the problem. At this point I am flooded with a mixture of confusion and curiosity, but am largely resigned to never understanding what went wrong.


You are responding to this comment written by Execvator on June 6th 2008, 04:41.

forEach on MDC

"If a thisObject parameter is provided to forEach, it will be used as the this for each invocation of the callback. If it is not provided, or is null, the global object associated with callback is used instead."

Passing this as the second argument for forEach should work.


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")