coen-hyde/Shanty-Mongo — pull request #60 by jwpage (2012-01-03 06:45:14+00:00)
Title: Replace getValidators and getFilters code with single loadRequirements function.

The `getValidators` and `getFilters` code does the same thing twice, and we're doubling the time required to run this code given that both functions were called in `setProperty`.

This commit gets around this problem by creating a single function `loadRequirements`, while maintaining the public API, and also lets us do a bit of extra caching at the same time.

Thoughts?