Closed jirihelmich closed 9 years ago
modules
is object from https://github.com/ymaps/modules
What's modules
which provides grunt-traceur-build
to the global scope?
seems like
{
standardModuleUrlRegExp: [Getter],
getModuleInstanceByUrl: [Getter],
getCurrentCodeUnit: [Getter],
setCurrentCodeUnit: [Getter]
}
It is definitely not a good practice to export such a global variable, but I don't expect Google to change it.
However
if(typeof modules === 'object' && 'define' in modules && typeof(modules.define) === 'function') {
modules.define('vow', function(provide) {
provide(vow);
});
defineAsGlobal = false;
}
doesn't break your integration with ymaps/modules and works when people use traceur.
Ok, I'll fix it as soon as possible Thanks for report!
:+1: thanks!
fixed in 0.4.8
modules
is object, but it does not have functiondefine