2f76a0749160f0183e201bf716ade21c7456f1fc.svn-base 495 B

12345678910111213141516171819202122
  1. if (!dojo._hasResource["foo.bar"]) { // _hasResource checks added by build.
  2. // Do not use _hasResource directly in
  3. // your code.
  4. dojo._hasResource["foo.bar"] = true;
  5. dojo.provide("foo.bar");
  6. // Define some globals and see if we can read them.
  7. // This is OK
  8. barMessage = "It Worked";
  9. // This one FAILS in IE/Safari 2 with regular eval.
  10. function getBarMessage() {
  11. return barMessage;
  12. }
  13. // This is OK
  14. getBar2Message = function() {
  15. return getBarMessage();
  16. }
  17. }