Skip to content
Snippets Groups Projects
Commit c6f9071d authored by svornost's avatar svornost
Browse files

Split AdManager.tallySlave into two functions, one which does the actual...

Split AdManager.tallySlave into two functions, one which does the actual tallying for the report, and a free function which counts the categories in which a slave matches a facility's ads.

Remove AdManager from everywhere that doesn't actually need to keep a slave tally state, and just use App.Ads.getMatchedCategoryCount everywhere the persistent state is not needed.  This means only App.Ads.report actually needs an AdManager instance, which cleans things up quite a bit.
parent 53d3c8b9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment