|
@@ -88,7 +88,6 @@ $ctx1.supercall = true,
|
|
|
$ctx1.supercall = false;
|
|
|
//>>excludeEnd("ctx");;
|
|
|
axon=$recv($globals.SimpleAxon)._new();
|
|
|
-$recv(axon)._registerIn_(self);
|
|
|
$recv(axon)._addInterest_($recv($globals.TrappedPosition)._interestOn_block_([["todos"], nil],(function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
@@ -113,6 +112,7 @@ return [$globals.HashedCollection._newFromPairs_(["text","learn trapped","done",
|
|
|
$self["@title"]="Todo";
|
|
|
$self["@todoText"]=nil;
|
|
|
$self["@todos"]=nil;
|
|
|
+$self._axxord_(axon);
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"initialize",{axon:axon},$globals.TrappedTodo)});
|
|
@@ -120,10 +120,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "initialize\x0a\x09| axon |\x0a\x09super initialize.\x0a\x0a axon := SimpleAxon new.\x0a\x09axon registerIn: self.\x0a\x09\x0a\x09axon addInterest: (TrappedPosition\x0a\x09\x09interestOn: #((todos) nil)\x0a\x09\x09block: [ axon changed: #((remaining)) ]).\x0a\x0a [ self axes: #((todos)) transform: [{\x0a #{'text'->'learn trapped'. 'done'->true}.\x0a #{'text'->'build a trapped app'. 'done'->false}\x0a }]] valueWithTimeout: 2000.\x0a\x0a\x09title := 'Todo'.\x0a\x09todoText := nil.\x0a\x09todos := nil",
|
|
|
+source: "initialize\x0a\x09| axon |\x0a\x09super initialize.\x0a\x0a axon := SimpleAxon new.\x0a\x09\x0a\x09axon addInterest: (TrappedPosition\x0a\x09\x09interestOn: #((todos) nil)\x0a\x09\x09block: [ axon changed: #((remaining)) ]).\x0a\x0a [ self axes: #((todos)) transform: [{\x0a #{'text'->'learn trapped'. 'done'->true}.\x0a #{'text'->'build a trapped app'. 'done'->false}\x0a }]] valueWithTimeout: 2000.\x0a\x0a\x09title := 'Todo'.\x0a\x09todoText := nil.\x0a\x09todos := nil.\x0a\x0a\x09self axxord: axon",
|
|
|
referencedClasses: ["SimpleAxon", "TrappedPosition"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["initialize", "new", "registerIn:", "addInterest:", "interestOn:block:", "changed:", "valueWithTimeout:", "axes:transform:"]
|
|
|
+messageSends: ["initialize", "new", "addInterest:", "interestOn:block:", "changed:", "valueWithTimeout:", "axes:transform:", "axxord:"]
|
|
|
}),
|
|
|
$globals.TrappedTodo);
|
|
|
|