Browse Source

Fixed Transcript>>open

Nicolas Petton 13 years ago
parent
commit
7cdba31aa7
3 changed files with 8 additions and 6 deletions
  1. 1 1
      js/IDE.deploy.js
  2. 4 4
      js/IDE.js
  3. 3 1
      st/IDE.st

+ 1 - 1
js/IDE.deploy.js

@@ -554,7 +554,7 @@ smalltalk.method({
 selector: 'open',
 fn: function (){
 var self=this;
-smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
+(function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
 return self;}
 }),
 smalltalk.Transcript.klass);

+ 4 - 4
js/IDE.js

@@ -739,11 +739,11 @@ selector: 'open',
 category: 'instance creation',
 fn: function (){
 var self=this;
-smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
+(function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
 return self;},
-source: unescape('open%0A%20%20%20%20self%20current%20open'),
-messageSends: ["open", "current"],
-referencedClasses: []
+source: unescape('open%0A%20%20%20%20TabManager%20current%20%0A%09open%3B%0A%09selectTab%3A%20self%20current'),
+messageSends: ["open", "selectTab:", "current"],
+referencedClasses: [smalltalk.TabManager]
 }),
 smalltalk.Transcript.klass);
 

+ 3 - 1
st/IDE.st

@@ -336,7 +336,9 @@ Transcript class instanceVariableNames: 'current'!
 !Transcript class methodsFor: 'instance creation'!
 
 open
-    self current open
+    TabManager current 
+	open;
+	selectTab: self current
 !
 
 new