appcelerator/hyperloop — pull request #144 by dawsontoth (2013-10-30 18:46:04+00:00)
Title: Clean Up Utils

Previously, we had util and utils. This merges them, and gives them the ability to mixin on other objects. So when we pass utility functions to a template, we can do so simply and without repeating ourselves. I also created a node_modules/util folder for us to put common modules in without worrying about folder hierarchies. I moved log in to this. We did something similar to this in 360, so that's where my basis comes, but I'm not married to this idea. It just makes things easier / cleaner for us. (Objections welcome.)

In the future, we might want to just pass a ref to the module itself, and then utils.indentify, rather than expecting to call indentify directly.