Sfoglia il codice sorgente

Merge pull request #6 from sebastianconcept/bug/initialize

patched smalltalk.initialize() in the root so we do it in the new fashio...
Herbert Vojčík 11 anni fa
parent
commit
a88fad5340
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      root/index.html

+ 3 - 2
root/index.html

@@ -20,8 +20,9 @@
           '{%= namespace %}/{%= name %}'
       ], function (smalltalk) {
           //used for all new packages in IDE
-          smalltalk.defaultAmdNamespace = "{%= namespace %}";
-          smalltalk.initialize();
+          smalltalk.initialize({
+            defaultAmdNamespace: "{%= namespace %}"
+          });
       });
     </script>
     <button onclick="require('amber_vm/smalltalk').Browser._open()">class browser</button>