hij1nx/Porter — pull request #10 by brynbellomy (2012-01-17 05:01:08+00:00)
Title: Including 'resource' local var in correct closure scope.

Not 100% sure that this affects much of anything, but I noticed that 'resource' was being used inside the innermost closure in buildResources() but that it was referencing the outer 'resource' and therefore was always set to the last endpoint defined for a particular resource.