1
0

init.js 399 B

123456789101112131415161718
  1. (function () {
  2. var inBrowser = typeof amber !== "undefined" && typeof amber.load === "function";
  3. function init() {
  4. smalltalk.initialize();
  5. /* Similar to jQuery(document).ready() */
  6. if (inBrowser && amber.smalltalkReady) {
  7. amber.smalltalkReady();
  8. }
  9. }
  10. if (inBrowser) {
  11. setTimeout(init, 0);
  12. } else {
  13. init();
  14. }
  15. })();