l20n/l20n.js — pull request #2 by stasm (2012-09-04 13:19:12+00:00)
Title: Context refactoring

* instead of adding callbacks on the `onReady` setter, emit `LocalizationReady` event that functions can listen to,
* add an asynchronous `get` method that waits for the `LocalizationReady` event to be fired, and if it doesn't, it times out and uses a fallback value,
* cache downloaded LOL files by URI (normalized relative to the localization of the script that's calling the Context's methods),
* cache preprocessed resources, which are the LOL files with imports inlined in their contents.