- Timestamp:
- 2006/12/27 18:05:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/html/test/kakinaka/js/treeview/treeview.js
r11379 r11381 23 23 * @type int 24 24 */ 25 YAHOO.widget.TreeView.nodeCount = 0;25 YAHOO.widget.TreeView.nodeCount = 100; 26 26 27 27 YAHOO.widget.TreeView.prototype = { … … 741 741 this.data = oData; 742 742 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 } 745 750 this.expanded = expanded; 746 751 … … 1491 1496 * @param expanded {boolean} the initial expanded/collapsed state 1492 1497 */ 1493 YAHOO.widget.TextNode = function(oData, oParent, expanded ) {1498 YAHOO.widget.TextNode = function(oData, oParent, expanded, index) { 1494 1499 // this.type = "TextNode"; 1495 1500 1496 1501 if (oData) { 1497 this.init(oData, oParent, expanded );1502 this.init(oData, oParent, expanded, index); 1498 1503 this.setUpLabel(oData); 1499 1504 }
Note: See TracChangeset
for help on using the changeset viewer.