@@ -358,9 +358,8 @@ var App = React.createClass({displayName: "App",
358
358
collapsible: false,
359
359
expandIconClass: "fa fa-chevron-right",
360
360
collapseIconClass: "fa fa-chevron-down"},
361
- React.createElement(TreeNode, {label: "B Option 1", id: "option_1"}),
362
- React.createElement(TreeNode, {label: "C Option 2", id: "option_2"},
363
- React.createElement(TreeNode, {label: "Option A", checkbox: true, checked: this.state.staticTreeData["option_2.a"].checked, id: "option_2.a"}),
361
+ React.createElement(TreeNode, {label: "Option 1", id: "option_1"}),
362
+ React.createElement(TreeNode, {label: "Option 2", id: "option_2"},
364
363
React.createElement(TreeNode, {label: "Option B", checkbox: true, checked: this.state.staticTreeData["option_2.b"].checked, id: "option_2.b"}),
365
364
React.createElement(TreeNode, {label: "Option A", checkbox: true, checked: this.state.staticTreeData["option_2.a"].checked, id: "option_2.a"})
366
365
),
@@ -39321,17 +39320,8 @@ var TreeMenu = React.createClass({displayName: "TreeMenu",
39321
39320
var sort = thisComponent.props.sort;
39322
39321
39323
39322
if (sort) {
39324
-
39325
39323
var sorter = typeof sort === "boolean" ? function (node) { return node.props.label } : sort;
39326
-
39327
39324
nodes = sortBy(nodes, sorter);
39328
- //if (typeof sort === "boolean") {
39329
- // nodes = sortBy(nodes, function (node) {
39330
- // return node.props.label;
39331
- // });
39332
- //} else {
39333
- // nodes = sortBy(nodes, sort);
39334
- //}
39335
39325
}
39336
39326
39337
39327
return nodes;
0 commit comments