mtrpcic/pathjs — pull request #56 by tkw722 (2013-03-11 15:18:50+00:00)
Title: Reset params object with each attempted route match.

I first came across this by iterating through my definitions list using a while(i--). The params object ends up accumulating params from every possible route match that didn't match the final route. This leads to unexpected results. I've updated them the for loop to simply reset the params object at the beginning of each pass to ensure it's clean for the next pass.