mrdoob/three.js — pull request #2650 by Elgaeb (2012-11-19 18:14:31+00:00)
Title: Updated EventTarget.dispatchEvent to coexist better with other libraries

EventTarget.dispatchEvent was choking when the Array class contained inherited properties (i.e. methods introduced by other third party libraries). Changed the method to use a sequential for loop instead of a for...in loop to avoid the issue.