WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 xtree.js BuG, Maitree, November 8, 2003

Subject: xtree.js BuG From: Maitree Date: November 8, 2003

xtree.js line #285
bug case if foo._last = undefined , tree must be webFXTreeConfig.blankIcon.

//---- tree1.xml -----
<tree>
 <tree text="Loaded Item 4" action="javascript:alert(4)">
  <tree text="Loaded Item 4.1" action="javascript:alert(2.1)" />
  <tree text="Loaded Item 4.1" action="javascript:alert(2.1)" />
 </tree>
</tree>
//--------------------

//---- Fixed Code -----
#284 if (foo) {
#285  if ((foo._last) || typeof(foo._last)=="undefined" ||((del) && (last))) { foo.src =  webFXTreeConfig.blankIcon; }
#286  else { foo.src =  webFXTreeConfig.iIcon; }
#287 }
//-------




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX