Browse Source

去注释

es6
windy 5 years ago
parent
commit
28918238d1
  1. 4
      src/base/tree/ztree/asynctree.js
  2. 4
      src/base/tree/ztree/treerender.service.js

4
src/base/tree/ztree/asynctree.js

@ -154,13 +154,13 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
} else { } else {
self.service.removeNodeList(treeNode.tId); self.service.removeNodeList(treeNode.tId);
} }
console.log("add nodes"); // console.log("add nodes");
self.nodes.addNodes(treeNode, nodes); self.nodes.addNodes(treeNode, nodes);
} }
function getNodes(times) { function getNodes(times) {
console.log(times); // console.log(times);
var parentValues = treeNode.parentValues || self._getParentValues(treeNode); var parentValues = treeNode.parentValues || self._getParentValues(treeNode);
var op = BI.extend({}, o.paras, { var op = BI.extend({}, o.paras, {
id: treeNode.id, id: treeNode.id,

4
src/base/tree/ztree/treerender.service.js

@ -70,7 +70,7 @@
this.nodeLists[tId].locked = false; this.nodeLists[tId].locked = false;
} }
if(!this.hasBinded) { if(!this.hasBinded) {
console.log("绑定事件"); // console.log("绑定事件");
this.hasBinded = true; this.hasBinded = true;
$("#" + this.id).parent().on("scroll", BI.debounce(function () { $("#" + this.id).parent().on("scroll", BI.debounce(function () {
self.refreshAllNodes(); self.refreshAllNodes();
@ -108,7 +108,7 @@
self.removeNodeList(tId); self.removeNodeList(tId);
}); });
this.nodeLists = {}; this.nodeLists = {};
console.log("解绑事件"); // console.log("解绑事件");
$("#" + this.id).parent().off("scroll"); $("#" + this.id).parent().off("scroll");
this.hasBinded = false; this.hasBinded = false;
} }

Loading…
Cancel
Save