enb / enb-bem-i18n

BEM internationalization for ENB
Other
8 stars 7 forks source link

i18n-js: fail on global #57

Closed blond closed 9 years ago

blond commented 9 years ago

If you run code in the browser without YModules this code:

  if (defineAsGlobal) {
        global.BEM || (global.BEM = {});
        global.BEM.I18N = __i18n__;
    }

fail with this error:

Uncaught ReferenceError: global is not defined