Skip to content

Commit cc37e28

Browse files
rebundle, update example
1 parent 491f7e5 commit cc37e28

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

example/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,14 @@ var App = React.createClass({
235235
<h2>Label Filter</h2>
236236
<ul>
237237
<li>This menu has a labelFilter prop that truncates the displayed label</li>
238+
<li>NOTE: no event handlers attached for this example</li>
238239
</ul>
239240
</div>
240241
<div className="col-lg-3">
241242
<h2>Renderers</h2>
242243
<ul>
243244
<li>Using renderer (node factory) methods as arguments</li>
245+
<li>NOTE: no event handlers attached for this example</li>
244246
</ul>
245247
</div>
246248

example/bundle.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,8 @@ var App = React.createClass({displayName: "App",
358358
collapsible: false,
359359
expandIconClass: "fa fa-chevron-right",
360360
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"},
364363
React.createElement(TreeNode, {label: "Option B", checkbox: true, checked: this.state.staticTreeData["option_2.b"].checked, id: "option_2.b"}),
365364
React.createElement(TreeNode, {label: "Option A", checkbox: true, checked: this.state.staticTreeData["option_2.a"].checked, id: "option_2.a"})
366365
),
@@ -39321,17 +39320,8 @@ var TreeMenu = React.createClass({displayName: "TreeMenu",
3932139320
var sort = thisComponent.props.sort;
3932239321

3932339322
if (sort) {
39324-
3932539323
var sorter = typeof sort === "boolean" ? function (node) { return node.props.label } : sort;
39326-
3932739324
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-
//}
3933539325
}
3933639326

3933739327
return nodes;

0 commit comments

Comments
 (0)