jasarien/JSTokenField — pull request #5 by bjhomer (2011-10-31 19:54:48+00:00)
Title: Don't modify the array of tokens while we're iterating it.

If you had multiple tokens with the same string, trying to delete one would end up deleting a bunch of them. It could cause a crash if we tried to walk off the end of the array.

(cherry picked from commit 7be366b42e8d3bf0f99eb8a8c4e38f5b85331a42)