Browse Source

smalltalk catches amd require to use in amd transport

Herbert Vojčík 11 years ago
parent
commit
191be2fb34
1 changed files with 4 additions and 2 deletions
  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;
 });