Ignore:
Timestamp:
2006/12/27 17:29:32 (18 years ago)
Author:
kaki
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/html/test/kakinaka/js/treeview/treeview.js

    r11377 r11379  
    2323 * @type int 
    2424 */ 
    25 YAHOO.widget.TreeView.nodeCount = 100; 
     25YAHOO.widget.TreeView.nodeCount = 0; 
    2626 
    2727YAHOO.widget.TreeView.prototype = { 
     
    741741        this.data       = oData; 
    742742        this.children   = []; 
    743          
    744         if(typeof index == "number"){ 
    745             this.index      = index; 
    746         }else{ 
    747             this.index      = YAHOO.widget.TreeView.nodeCount; 
    748             ++YAHOO.widget.TreeView.nodeCount; 
    749         } 
     743        this.index      = YAHOO.widget.TreeView.nodeCount; 
     744        ++YAHOO.widget.TreeView.nodeCount; 
    750745        this.expanded   = expanded; 
    751746         
     
    14961491 * @param expanded {boolean} the initial expanded/collapsed state 
    14971492 */ 
    1498 YAHOO.widget.TextNode = function(oData, oParent, expanded, index) { 
     1493YAHOO.widget.TextNode = function(oData, oParent, expanded) { 
    14991494    // this.type = "TextNode"; 
    15001495 
    15011496    if (oData) {  
    1502         this.init(oData, oParent, expanded, index); 
     1497        this.init(oData, oParent, expanded); 
    15031498        this.setUpLabel(oData); 
    15041499    } 
Note: See TracChangeset for help on using the changeset viewer.