Herby Vojčík vor 4 Jahren
Ursprung
Commit
094b76bb7a
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. 1 2
      src/Benchfib.js
  2. 2 2
      src/Examples.js

+ 1 - 2
src/Benchfib.js

@@ -1,10 +1,9 @@
 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); };
 $pkg.transport = {"type":"amd","amdNamespace":"amber/legacy"};
 
-$core.addClass("Benchfib", $globals.Object, [], "Benchfib");
+$core.addClass("Benchfib", $globals.Object, "Benchfib");
 
 $core.addMethod(
 $core.method({

+ 2 - 2
src/Examples.js

@@ -1,10 +1,10 @@
 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); };
 $pkg.transport = {"type":"amd","amdNamespace":"amber/legacy"};
 
-$core.addClass("Counter", $globals.Widget, ["count", "header"], "Examples");
+$core.addClass("Counter", $globals.Widget, "Examples");
+$core.setSlots($globals.Counter, ["count", "header"]);
 //>>excludeStart("ide", pragmas.excludeIdeData);
 $globals.Counter.comment="This is a trivial Widget example mimicking the classic Counter example in Seaside.\x0aIn order to play with it, just evaluate the doit below in a workspace.\x0aThen take a look in the HTML document above the IDE.\x0a\x0a\x09\x09Counter tryExample";
 //>>excludeEnd("ide");