1
0
فهرست منبع

Helios: Don't show a uncommented icon for not commented classes. The doc
is displayed by default, making it enough visible.

Nicolas Petton 11 سال پیش
والد
کامیت
d3089054a6
2فایلهای تغییر یافته به همراه5 افزوده شده و 14 حذف شده
  1. 5 12
      js/Helios-Browser.js
  2. 0 2
      st/Helios-Browser.st

+ 5 - 12
js/Helios-Browser.js

@@ -1272,20 +1272,13 @@ protocol: 'accessing',
 fn: function (aClass){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-var $3,$2,$1,$4;
-$3=_st(aClass)._theNonMetaClass();
-$ctx1.sendIdx["theNonMetaClass"]=1;
-$2=_st($3)._comment();
-$1=_st($2)._isEmpty();
-if(smalltalk.assert($1)){
-return "uncommented";
-};
-$4=_st(_st(aClass)._theNonMetaClass())._heliosClass();
-return $4;
+var $1;
+$1=_st(_st(aClass)._theNonMetaClass())._heliosClass();
+return $1;
 }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{aClass:aClass},globals.HLClassesListWidget)})},
 args: ["aClass"],
-source: "cssClassForItem: aClass\x0a\x09aClass theNonMetaClass comment isEmpty \x0a\x09\x09ifTrue: [ ^ 'uncommented' ].\x0a\x09^ aClass theNonMetaClass heliosClass",
-messageSends: ["ifTrue:", "isEmpty", "comment", "theNonMetaClass", "heliosClass"],
+source: "cssClassForItem: aClass\x0a\x09^ aClass theNonMetaClass heliosClass",
+messageSends: ["heliosClass", "theNonMetaClass"],
 referencedClasses: []
 }),
 globals.HLClassesListWidget);

+ 0 - 2
st/Helios-Browser.st

@@ -416,8 +416,6 @@ I render a list of classes in the selected package.!
 !HLClassesListWidget methodsFor: 'accessing'!
 
 cssClassForItem: aClass
-	aClass theNonMetaClass comment isEmpty 
-		ifTrue: [ ^ 'uncommented' ].
 	^ aClass theNonMetaClass heliosClass
 !