maccman/spine — pull request #167 by noTxt (2011-12-29 03:46:35+00:00)
Title: fix for regex.exec bug in IE

IE has a bug in regex.exec where it doesn't reset the internal
reference to regex.lastIndex when it begins a new cycle in the
construction "while (match = namedParam.exec(path))". This was causing
the params of the second route I registered to start at the index
that my first route left off.

Adding a line above the loop in route.coffee reseting
namedParam.lastIndex to 0 corrects this behavior and matches the
behavior of chrome. You can see it in my commit on line 108 of
routes.coffee.

Thank you for the amazing project!