cocos2d/cocos2d-html5 — pull request #839 by rickms (2013-03-22 02:02:18+00:00)
Title: Fix for CCEGLView.js touches* function when adding to Array.prototype

CCEGLView.js touchesBegan, touchesEnded, touchesMoved and touchesCancelled uses for(... in...) syntax to loop through the array of touches. This syntax explicitly loops through the properties of objects, not the elements in an array. As a result if you add to Array.prototype, anything you add will be iterated through when using for(...in...) syntax. These should use "standard" for (;;) syntax.