@@ -75,25 +75,6 @@ ClassTree.prototype.removeLoader = function () {
7575
7676} ;
7777
78- /**
79- * @deprecated
80- * @param element
81- * @param className
82- */
83- ClassTree . prototype . classSelected = function ( element , className ) {
84-
85- if ( element !== this . SELECTED_ELEMENT ) {
86- if ( this . SELECTED_ELEMENT ) this . SELECTED_ELEMENT . classList . remove ( "selected" ) ;
87- this . SELECTED_ELEMENT = element ;
88- }
89-
90- if ( ! element . classList . contains ( "selected" ) ) {
91- element . classList . add ( "selected" ) ;
92- this . cacheClassExplorer . classView . loadClass ( className ) ;
93- }
94-
95- } ;
96-
9778ClassTree . prototype . packageSelected = function ( element , packageName ) {
9879
9980 if ( element !== this . SELECTED_ELEMENT ) {
@@ -197,7 +178,6 @@ ClassTree.prototype.updateTree = function (treeObject, doNotChangeRoot) {
197178 function inPath ( path , classList ) {
198179 var inside = false ,
199180 s = path + "." ;
200- console . log ( s ) ;
201181 classList . forEach ( function ( e ) {
202182 if ( e . indexOf ( s ) === 0 )
203183 inside = true ;
@@ -211,14 +191,15 @@ ClassTree.prototype.updateTree = function (treeObject, doNotChangeRoot) {
211191 && sce === level && selectedClassElement [ sce ] === elementName ? ++ sce : null ,
212192 el1 = div ( ) ,
213193 el2 , el3 , el4 , checkbox , span ,
214- selectedNames = self . SELECTED_NAME ? self . SELECTED_NAME . split ( "," ) : [ ] ;
194+ selectedNames = self . SELECTED_NAME ? self . SELECTED_NAME . split ( "," ) : [ ] ,
195+ fullName = ( path ? path + "." : path ) + elementName ;
215196
216197 if ( isPackage ) {
217198 el1 . className = "tv-package" ;
218199 ( el2 = div ( ) ) . className = "tv-package-name" + (
219- sel || inPath ( ( path ? path + "." : path ) + elementName , self . selectedClassList )
220- ? ""
221- : " minimized" ) ;
200+ sel || inPath ( fullName , self . selectedClassList )
201+ ? ""
202+ : " minimized" ) ;
222203 el2 . textContent = elementName ;
223204 if ( sel && sce === selectedClassElement . length ) {
224205 el2 . className += " selected" ;
@@ -233,8 +214,7 @@ ClassTree.prototype.updateTree = function (treeObject, doNotChangeRoot) {
233214 self . packageSelected ( el2 , ( path ? path + "." : path ) + elementName ) ;
234215 } ) ;
235216 } else {
236- if ( sel ) self . SELECTED_ELEMENT = el1 ;
237- el1 . className = "tv-class-name" + ( sel ? " selected" : "" ) ;
217+ el1 . className = "tv-class-name" ;
238218 el1 . CLASS_NAME = path + ( path ? "." : "" ) + elementName ;
239219 checkbox = document . createElement ( "input" ) ;
240220 checkbox . setAttribute ( "type" , "checkbox" ) ;
0 commit comments