Herby Vojčík 5 vuotta sitten
vanhempi
commit
04f6dfcda1
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      src/Benchfib.js
  2. 1 1
      src/Examples.js
  3. 2 2
      src/IDE.js

+ 1 - 1
src/Benchfib.js

@@ -1,4 +1,4 @@
-define(["amber/boot", "require", "amber_core/Kernel-Objects"], function($boot,$require){"use strict";
+define(["amber/boot", "require", "amber_core/Kernel-Objects"], function($boot,requirejs){"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", "require", "amber/web/Web"], function($boot,$require){"use strict";
+define(["amber/boot", "require", "amber/web/Web"], function($boot,requirejs){"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 - 2
src/IDE.js

@@ -1,11 +1,11 @@
-define(["amber/boot", "require", "amber/web/Web", "amber_core/Kernel-Objects"], function($boot,$require){"use strict";
+define(["amber/boot", "require", "amber/web/Web", "amber_core/Kernel-Objects"], function($boot,requirejs){"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) { requirejs(["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"};