PDA

View Full Version : Error in TreeNode.js



galdaka
27 Feb 2007, 8:15 AM
Hi,

Error in treenode.js


/**
* Collapse all child nodes
* @param {Boolean} deep (optional) true if the child nodes should also collapse their child nodes
*/
collapseChildNodes : function(deep){
var cs = this.childNodes;
for(var i = 0, len = cs.length; i < len; i++) {
cs[i].expand(deep); <==================== Should be collapse
}
},

jack.slocum
27 Feb 2007, 8:16 AM
I am guilty of the ol' cut n paste. :oops: