Ignore:
Timestamp:
2006/12/27 18:05:00 (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

    r11379 r11381  
    2323 * @type int 
    2424 */ 
    25 YAHOO.widget.TreeView.nodeCount = 0; 
     25YAHOO.widget.TreeView.nodeCount = 100; 
    2626 
    2727YAHOO.widget.TreeView.prototype = { 
     
    741741        this.data       = oData; 
    742742        this.children   = []; 
    743         this.index      = YAHOO.widget.TreeView.nodeCount; 
    744         ++YAHOO.widget.TreeView.nodeCount; 
     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        } 
    745750        this.expanded   = expanded; 
    746751         
     
    14911496 * @param expanded {boolean} the initial expanded/collapsed state 
    14921497 */ 
    1493 YAHOO.widget.TextNode = function(oData, oParent, expanded) { 
     1498YAHOO.widget.TextNode = function(oData, oParent, expanded, index) { 
    14941499    // this.type = "TextNode"; 
    14951500 
    14961501    if (oData) {  
    1497         this.init(oData, oParent, expanded); 
     1502        this.init(oData, oParent, expanded, index); 
    14981503        this.setUpLabel(oData); 
    14991504    } 
Note: See TracChangeset for help on using the changeset viewer.