瀏覽代碼

Finishing touches to daa9e41.

Herbert Vojčík 9 年之前
父節點
當前提交
e44af9381e
共有 3 個文件被更改,包括 1 次插入41 次删除
  1. 0 31
      src/Kernel-Infrastructure.js
  2. 0 9
      src/Kernel-Infrastructure.st
  3. 1 1
      src/Platform-Services.js

+ 0 - 31
src/Kernel-Infrastructure.js

@@ -256,37 +256,6 @@ messageSends: ["value:"]
 }),
 $globals.JSObjectProxy);
 
-$core.addMethod(
-$core.method({
-selector: "inspectOn:",
-protocol: 'proxy',
-fn: function (anInspector){
-var self=this;
-var variables;
-function $Dictionary(){return $globals.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
-function $JSObjectProxy(){return $globals.JSObjectProxy||(typeof JSObjectProxy=="undefined"?nil:JSObjectProxy)}
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-return $core.withContext(function($ctx1) {
-//>>excludeEnd("ctx");
-variables=$recv($Dictionary())._new();
-$recv(variables)._at_put_("#self",self._jsObject());
-$recv(anInspector)._setLabel_(self._printString());
-$recv($JSObjectProxy())._addObjectVariablesTo_ofProxy_(variables,self);
-$recv(anInspector)._setVariables_(variables);
-return self;
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
-}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},$globals.JSObjectProxy)});
-//>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["anInspector"],
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self jsObject.\x0a\x09anInspector setLabel: self printString.\x0a\x09JSObjectProxy addObjectVariablesTo: variables ofProxy: self.\x0a\x09anInspector setVariables: variables",
-referencedClasses: ["Dictionary", "JSObjectProxy"],
-//>>excludeEnd("ide");
-messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "addObjectVariablesTo:ofProxy:", "setVariables:"]
-}),
-$globals.JSObjectProxy);
-
 $core.addMethod(
 $core.method({
 selector: "jsObject",

+ 0 - 9
src/Kernel-Infrastructure.st

@@ -119,15 +119,6 @@ doesNotUnderstand: aMessage
 				forwardMessage: jsSelector 
 				withArguments: aMessage arguments
 				ofProxy: self ]
-!
-
-inspectOn: anInspector
-	| variables |
-	variables := Dictionary new.
-	variables at: '#self' put: self jsObject.
-	anInspector setLabel: self printString.
-	JSObjectProxy addObjectVariablesTo: variables ofProxy: self.
-	anInspector setVariables: variables
 ! !
 
 !JSObjectProxy methodsFor: 'streaming'!

+ 1 - 1
src/Platform-Services.js

@@ -1,4 +1,4 @@
-define("amber_core/Platform-Services", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Collections", "amber_core/Kernel-Infrastructure", "amber_core/Kernel-Methods"], function($boot){
+define("amber_core/Platform-Services", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Collections", "amber_core/Kernel-Methods", "amber_core/Kernel-Infrastructure"], function($boot){
 var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
 $core.addPackage('Platform-Services');
 $core.packages["Platform-Services"].innerEval = function (expr) { return eval(expr); };