RC-Paves3-build / plovr

Automatically exported from code.google.com/p/plovr
0 stars 0 forks source link

example.api gets redefined in the modules demo after the module for the UserScript API is loaded #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Load the live modules demo at http://www.plovr.com/demo/modules.html

In your favorite JavaScript console, run the following commands:

example.api.isLoaded();
example.api.load();      // This loads the UserScript API module
example.api.isLoaded();

The last statement throws an error! Apparently calling goog.exportSymbol() for 
example.api.setMessage() clobbers the existing example.api object. As further 
evidence, example.api.load() is also missing after the module loads.

Original issue reported on code.google.com by bolinf...@gmail.com on 21 Dec 2010 at 6:20