Make L10n.js requireable

This commit is contained in:
Marcel Klehr 2012-11-12 17:42:07 +01:00
parent ed3020c729
commit 993d501943
1 changed files with 4 additions and 0 deletions

View File

@ -1022,3 +1022,7 @@ document.webL10n = (function(window, document, undefined) {
if (window._ === undefined)
var _ = document.webL10n.get;
// CommonJS
try {
exports = document.webL10n;
}catch(e){}