marijnh/CodeMirror2 — pull request #586 by xLanny (2012-06-20 23:18:46+00:00)
Title: Fixes text object manipulation

Changing from Array.prototype.forEach to a standard for loop causes every text object operation to map to the last member of textObjectList. Wrapping the assignment in an anonymous function forces a new scope and makes things work.