Loading ...
Sorry, an error occurred while loading the content.

[ydn-javascript] YuiLoader addModule to sandbox

Expand Messages
  • Joshua Lim
    Hi I have some Custom Module that I use YuiLoader to load. ... var loader = new YAHOO.util.YUILoader(); loader.addModule( myModule );
    Message 1 of 1 , Mar 31, 2009
    • 0 Attachment
      Hi

      I have some Custom Module that I use YuiLoader to load.
      ...
      var loader = new YAHOO.util.YUILoader();
      loader.addModule("myModule");
      loader.require("myModule");
      ...

      question here is, I would like to sandbox this. how should I do this? can this be done at all?

      ...
      var loader = new YAHOO.util.YUILoader();
      loader.sandbox({
      ....require???
      });
      loader.addModule("myModule");
      loader.require("myModule");
      ....

      Thanks
      Joshua




    Your message has been successfully submitted and would be delivered to recipients shortly.