Ver Fonte

Reexport.

Herby Vojčík há 5 anos atrás
pai
commit
3980b83afd
3 ficheiros alterados com 4 adições e 7 exclusões
  1. 1 1
      src/Benchfib.js
  2. 1 1
      src/Examples.js
  3. 2 5
      src/IDE.js

+ 1 - 1
src/Benchfib.js

@@ -1,4 +1,4 @@
-define(["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict";
+define(["amber/boot", "require", "amber_core/Kernel-Objects"], function($boot,$require){"use strict";
 var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
 var $pkg = $core.addPackage("Benchfib");
 $pkg.innerEval = function (expr) { return eval(expr); };

+ 1 - 1
src/Examples.js

@@ -1,4 +1,4 @@
-define(["amber/boot", "amber/web/Web"], function($boot){"use strict";
+define(["amber/boot", "require", "amber/web/Web"], function($boot,$require){"use strict";
 var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
 var $pkg = $core.addPackage("Examples");
 $pkg.innerEval = function (expr) { return eval(expr); };

+ 2 - 5
src/IDE.js

@@ -1,14 +1,11 @@
-//>>excludeStart("imports", pragmas.excludeImports);
-require(["codemirror/lib/codemirror", "amber_core/Platform-Services", "codemirror/addon/hint/show-hint", "codemirror/mode/smalltalk/smalltalk", "css!amber/legacy/resources/amber", "css!codemirror/addon/hint/show-hint", "css!codemirror/lib/codemirror", "css!codemirror/theme/ambiance", "jquery-ui"]);
-//>>excludeEnd("imports");
-define(["amber/boot", "amber/web/Web", "amber_core/Kernel-Objects"], function($boot){"use strict";
+define(["amber/boot", "require", "amber/web/Web", "amber_core/Kernel-Objects"], function($boot,$require){"use strict";
 var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
 var $pkg = $core.addPackage("IDE");
 $pkg.innerEval = function (expr) { return eval(expr); };
 $pkg.imports = ["codeMirrorLib=codemirror/lib/codemirror", "amber_core/Platform-Services", "codemirror/addon/hint/show-hint", "codemirror/mode/smalltalk/smalltalk", "css!amber/legacy/resources/amber", "css!codemirror/addon/hint/show-hint", "css!codemirror/lib/codemirror", "css!codemirror/theme/ambiance", "jquery-ui"];
 //>>excludeStart("imports", pragmas.excludeImports);
 var codeMirrorLib;
-$pkg.isReady = new Promise(function (resolve, reject) { require(["codemirror/lib/codemirror", "amber_core/Platform-Services", "codemirror/addon/hint/show-hint", "codemirror/mode/smalltalk/smalltalk", "css!amber/legacy/resources/amber", "css!codemirror/addon/hint/show-hint", "css!codemirror/lib/codemirror", "css!codemirror/theme/ambiance", "jquery-ui"], function ($1) {codeMirrorLib=$1; resolve();}, reject); });
+$pkg.isReady = new Promise(function (resolve, reject) { $require(["codemirror/lib/codemirror", "amber_core/Platform-Services", "codemirror/addon/hint/show-hint", "codemirror/mode/smalltalk/smalltalk", "css!amber/legacy/resources/amber", "css!codemirror/addon/hint/show-hint", "css!codemirror/lib/codemirror", "css!codemirror/theme/ambiance", "jquery-ui"], function ($1) {codeMirrorLib=$1; resolve();}, reject); });
 //>>excludeEnd("imports");
 $pkg.transport = {"type":"amd","amdNamespace":"amber/legacy"};