Ignore:
Timestamp:
2006/12/27 16:55:16 (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

    r11370 r11371  
    741741        this.data       = oData; 
    742742        this.children   = []; 
    743         this.index      = YAHOO.widget.TreeView.nodeCount; 
    744         ++YAHOO.widget.TreeView.nodeCount; 
     743         
     744        alert(typeof index); 
     745        if(typeof index == "number"){ 
     746            this.index      = index; 
     747        }else{ 
     748            this.index      = YAHOO.widget.TreeView.nodeCount; 
     749            ++YAHOO.widget.TreeView.nodeCount; 
     750        } 
    745751        this.expanded   = expanded; 
    746752         
    747         alert(typeof index); 
    748753 
    749754        // oParent should never be null except when we create the root node. 
Note: See TracChangeset for help on using the changeset viewer.