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