honestbleeps/Reddit-Enhancement-Suite — pull request #734 by andytuba (2014-01-20 01:56:04+00:00)
Title: RESTemplates.load async, modules['commandLine'] refactor, commandLine uses template

Since the templates.html resource loads asynchronously but modules might try to call `RESTemplates.load()` from `module.go()`, `RESTemplates.load = function(templateName, callback)` is now defined before modules `go()` and calls `callback` after templates are available.

Additionally, `modules['commandLine']` is refactored out of `modules['keyboardNavigation']` and refactored a template out of `modules['commandLine'].attachCommandLineWidget`.