define(["amber/boot" //>>excludeStart("imports", pragmas.excludeImports); , "axxord/Axxord" //>>excludeEnd("imports"); , "amber_core/Kernel-Objects"], function($boot //>>excludeStart("imports", pragmas.excludeImports); //>>excludeEnd("imports"); ){"use strict"; if(!$boot.nilAsReceiver)$boot.nilAsReceiver=$boot.nil; if(!("nilAsValue" in $boot))$boot.nilAsValue=$boot.nilAsReceiver; var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals; if(!$boot.nilAsClass)$boot.nilAsClass=$boot.dnu; $core.addPackage("Trapped-Backend"); $core.packages["Trapped-Backend"].innerEval = function (expr) { return eval(expr); }; $core.packages["Trapped-Backend"].imports = ["axxord/Axxord"]; $core.packages["Trapped-Backend"].transport = {"type":"amd","amdNamespace":"trapped"}; $core.addClass("Isolator", $globals.Object, ["root"], "Trapped-Backend"); $core.addMethod( $core.method({ selector: "model:modify:", protocol: "action", fn: function (anEavModel,aBlock){ var self=this,$self=this; var newValue; //>>excludeStart("ctx", pragmas.excludeDebugContexts); return $core.withContext(function($ctx1) { //>>excludeEnd("ctx"); newValue=$recv(aBlock)._value_($recv(anEavModel)._on_(self)); $recv(anEavModel)._on_put_(self,$recv(newValue)._deepCopy()); return self; //>>excludeStart("ctx", pragmas.excludeDebugContexts); }, function($ctx1) {$ctx1.fill(self,"model:modify:",{anEavModel:anEavModel,aBlock:aBlock,newValue:newValue},$globals.Isolator)}); //>>excludeEnd("ctx"); }, //>>excludeStart("ide", pragmas.excludeIdeData); args: ["anEavModel", "aBlock"], source: "model: anEavModel modify: aBlock\x0a\x0a| newValue |\x0anewValue := aBlock value: (anEavModel on: self).\x0aanEavModel on: self put: newValue deepCopy", referencedClasses: [], //>>excludeEnd("ide"); messageSends: ["value:", "on:", "on:put:", "deepCopy"] }), $globals.Isolator); $core.addMethod( $core.method({ selector: "model:read:", protocol: "action", fn: function (anEavModel,aBlock){ var self=this,$self=this; //>>excludeStart("ctx", pragmas.excludeDebugContexts); return $core.withContext(function($ctx1) { //>>excludeEnd("ctx"); $recv(aBlock)._value_($recv($recv(anEavModel)._on_(self))._deepCopy()); return self; //>>excludeStart("ctx", pragmas.excludeDebugContexts); }, function($ctx1) {$ctx1.fill(self,"model:read:",{anEavModel:anEavModel,aBlock:aBlock},$globals.Isolator)}); //>>excludeEnd("ctx"); }, //>>excludeStart("ide", pragmas.excludeIdeData); args: ["anEavModel", "aBlock"], source: "model: anEavModel read: aBlock\x0a\x0aaBlock value: (anEavModel on: self) deepCopy", referencedClasses: [], //>>excludeEnd("ide"); messageSends: ["value:", "deepCopy", "on:"] }), $globals.Isolator); $core.addMethod( $core.method({ selector: "root", protocol: "accessing", fn: function (){ var self=this,$self=this; return $self["@root"]; }, //>>excludeStart("ide", pragmas.excludeIdeData); args: [], source: "root\x0a\x0a^root", referencedClasses: [], //>>excludeEnd("ide"); messageSends: [] }), $globals.Isolator); $core.addMethod( $core.method({ selector: "root:", protocol: "accessing", fn: function (anObject){ var self=this,$self=this; $self["@root"]=anObject; return self; }, //>>excludeStart("ide", pragmas.excludeIdeData); args: ["anObject"], source: "root: anObject\x0a\x0aroot := anObject", referencedClasses: [], //>>excludeEnd("ide"); messageSends: [] }), $globals.Isolator); $core.addMethod( $core.method({ selector: "on:", protocol: "instance creation", fn: function (anObject){ var self=this,$self=this; //>>excludeStart("ctx", pragmas.excludeDebugContexts); return $core.withContext(function($ctx1) { //>>excludeEnd("ctx"); return $recv($self._new())._root_(anObject); //>>excludeStart("ctx", pragmas.excludeDebugContexts); }, function($ctx1) {$ctx1.fill(self,"on:",{anObject:anObject},$globals.Isolator.a$cls)}); //>>excludeEnd("ctx"); }, //>>excludeStart("ide", pragmas.excludeIdeData); args: ["anObject"], source: "on: anObject\x0a^self new root: anObject", referencedClasses: [], //>>excludeEnd("ide"); messageSends: ["root:", "new"] }), $globals.Isolator.a$cls); });