|
@@ -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");
|