Explorar el Código

smalltalk catches amd require to use in amd transport

Herbert Vojčík hace 11 años
padre
commit
191be2fb34
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      js/lib/smalltalk.js

+ 4 - 2
js/lib/smalltalk.js

@@ -1,3 +1,5 @@
-define("amber_vm/smalltalk", ["./boot"], function (boot) {
-    return boot.smalltalk;
+define("amber_vm/smalltalk", ["require", "./boot"], function (require, boot) {
+    var smalltalk = boot.smalltalk;
+    smalltalk._amd_require = require;
+    return  smalltalk;
 });