guy 7 years ago
parent
commit
fbf3d4840e
  1. 6
      bi/base.js
  2. 6
      docs/base.js
  3. 6
      src/base/tree/treeview.js

6
bi/base.js

@ -1520,7 +1520,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
_init: function () { _init: function () {
BI.TreeView.superclass._init.apply(this, arguments); BI.TreeView.superclass._init.apply(this, arguments);
this._stop = false; this._stop = false;
this.container = BI.createWidget();
this._createTree(); this._createTree();
this.tip = BI.createWidget({ this.tip = BI.createWidget({
@ -1533,7 +1532,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
scrollable: true, scrollable: true,
scrolly: false, scrolly: false,
element: this, element: this,
items: [this.container, this.tip] items: [this.tip]
}); });
}, },
@ -1552,7 +1551,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
}); });
BI.createWidget({ BI.createWidget({
type: "bi.default", type: "bi.default",
element: this.container, element: this.element,
items: [this.tree] items: [this.tree]
}); });
}, },
@ -1947,6 +1946,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
setNode(child.children); setNode(child.children);
}); });
} }
BI.each(this.nodes.getNodes(), function (i, node) { BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false; node.halfCheck = false;
setNode(node.children); setNode(node.children);

6
docs/base.js

@ -1520,7 +1520,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
_init: function () { _init: function () {
BI.TreeView.superclass._init.apply(this, arguments); BI.TreeView.superclass._init.apply(this, arguments);
this._stop = false; this._stop = false;
this.container = BI.createWidget();
this._createTree(); this._createTree();
this.tip = BI.createWidget({ this.tip = BI.createWidget({
@ -1533,7 +1532,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
scrollable: true, scrollable: true,
scrolly: false, scrolly: false,
element: this, element: this,
items: [this.container, this.tip] items: [this.tip]
}); });
}, },
@ -1552,7 +1551,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
}); });
BI.createWidget({ BI.createWidget({
type: "bi.default", type: "bi.default",
element: this.container, element: this.element,
items: [this.tree] items: [this.tree]
}); });
}, },
@ -1947,6 +1946,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
setNode(child.children); setNode(child.children);
}); });
} }
BI.each(this.nodes.getNodes(), function (i, node) { BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false; node.halfCheck = false;
setNode(node.children); setNode(node.children);

6
src/base/tree/treeview.js

@ -15,7 +15,6 @@ BI.TreeView = BI.inherit(BI.Pane, {
_init: function () { _init: function () {
BI.TreeView.superclass._init.apply(this, arguments); BI.TreeView.superclass._init.apply(this, arguments);
this._stop = false; this._stop = false;
this.container = BI.createWidget();
this._createTree(); this._createTree();
this.tip = BI.createWidget({ this.tip = BI.createWidget({
@ -28,7 +27,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
scrollable: true, scrollable: true,
scrolly: false, scrolly: false,
element: this, element: this,
items: [this.container, this.tip] items: [this.tip]
}); });
}, },
@ -47,7 +46,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
}); });
BI.createWidget({ BI.createWidget({
type: "bi.default", type: "bi.default",
element: this.container, element: this.element,
items: [this.tree] items: [this.tree]
}); });
}, },
@ -442,6 +441,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
setNode(child.children); setNode(child.children);
}); });
} }
BI.each(this.nodes.getNodes(), function (i, node) { BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false; node.halfCheck = false;
setNode(node.children); setNode(node.children);

Loading…
Cancel
Save