瀏覽代碼

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 年之前
父節點
當前提交
a88fad5340
共有 1 個文件被更改,包括 3 次插入2 次删除
  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>