Hi,
Error in treenode.js
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
}
},
|
#
2
|
|
I am guilty of the ol' cut n paste. :oops:
|
本文介绍了一个关于JavaScript中树节点递归展开方法的错误,并提供了正确的实现方式,即应该调用collapse而非expand方法来折叠子节点。
250

被折叠的 条评论
为什么被折叠?



