Browse Source

Stop using Trapper, start using Axxord.

Herbert Vojčík 6 years ago
parent
commit
6619e9b8e0
2 changed files with 12 additions and 12 deletions
  1. 9 9
      src/Trapped-Backend.js
  2. 3 3
      src/Trapped-Backend.st

+ 9 - 9
src/Trapped-Backend.js

@@ -441,7 +441,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv($self._model())._modify_do_($self._path(),aBlock);
+$recv($self._model())._axes_transform_($self._path(),aBlock);
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"modify:",{aBlock:aBlock},$globals.TrappedPosition)});
@@ -449,10 +449,10 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aBlock"],
-source: "modify: aBlock\x0a\x09self model modify: self path do: aBlock",
+source: "modify: aBlock\x0a\x09self model axes: self path transform: aBlock",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["modify:do:", "model", "path"]
+messageSends: ["axes:transform:", "model", "path"]
 }),
 $globals.TrappedPosition);
 
@@ -503,7 +503,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv($self._model())._read_do_($self._path(),aBlock);
+$recv($self._model())._axes_consume_($self._path(),aBlock);
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"read:",{aBlock:aBlock},$globals.TrappedPosition)});
@@ -511,10 +511,10 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aBlock"],
-source: "read: aBlock\x0a\x09self model read: self path do: aBlock",
+source: "read: aBlock\x0a\x09self model axes: self path consume: aBlock",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["read:do:", "model", "path"]
+messageSends: ["axes:consume:", "model", "path"]
 }),
 $globals.TrappedPosition);
 
@@ -527,7 +527,7 @@ var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv($recv($self._model())._axon())._addInterest_($self._interestOn_block_($self._path(),(function(){
+$recv($recv($self._model())._registeredAxon())._addInterest_($self._interestOn_block_($self._path(),(function(){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
 //>>excludeEnd("ctx");
@@ -543,10 +543,10 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["aBlock"],
-source: "watch: aBlock\x0a\x09self model axon addInterest: (self\x0a\x09\x09interestOn: self path\x0a\x09\x09block: [ self read: aBlock ])",
+source: "watch: aBlock\x0a\x09self model registeredAxon addInterest: (self\x0a\x09\x09interestOn: self path\x0a\x09\x09block: [ self read: aBlock ])",
 referencedClasses: [],
 //>>excludeEnd("ide");
-messageSends: ["addInterest:", "axon", "model", "interestOn:block:", "path", "read:"]
+messageSends: ["addInterest:", "registeredAxon", "model", "interestOn:block:", "path", "read:"]
 }),
 $globals.TrappedPosition);
 

+ 3 - 3
src/Trapped-Backend.st

@@ -118,15 +118,15 @@ path: anArray model: aTrappedMW
 !TrappedPosition methodsFor: 'action'!
 
 modify: aBlock
-	self model modify: self path do: aBlock
+	self model axes: self path transform: aBlock
 !
 
 read: aBlock
-	self model read: self path do: aBlock
+	self model axes: self path consume: aBlock
 !
 
 watch: aBlock
-	self model axon addInterest: (self
+	self model registeredAxon addInterest: (self
 		interestOn: self path
 		block: [ self read: aBlock ])
 ! !