oaeproject/3akai-ux — pull request #3845 by bp323 (2014-08-12 10:36:29+00:00)
Title: The TemplateCache variable in oae.api.util is defined as an Array while it should be a plain Object

In https://github.com/oaeproject/3akai-ux/blob/master/shared/oae/api/oae.api.util.js#L153:

The templateCache variable is defined as an array
`var templateCache = [];`

But compiled templates are added to the templateCache as properties ([link](https://github.com/oaeproject/3akai-ux/blob/master/shared/oae/api/oae.api.util.js#L299)):
`templateCache[templateId] = TrimPath.parseTemplate(templateContent, templateId);`

The cache works, but it makes debugging really hard as logging the variable will always print out an empty array.