plovr icon indicating copy to clipboard operation
plovr copied to clipboard

global PLOVR_MODULE_INFO will conflict with other libraries written with Plovr

Open monzonj opened this issue 10 years ago • 0 comments

So imagine that my friend send this super cool JS library that was done with Plovr and uses modules. He sends me the compiled js so I just have to include it in my page.

But at the same time I also have JS library done with plovr, and I like modules.

BOOOOM! Plovr uses goog.global['PLOVR_MODULE_INFO'] to store module information and it is surprisingly global. My module declaration will wipe my friend's modules and his library will never work.

monzonj avatar Nov 13 '13 15:11 monzonj