Skip to content

Commit

Permalink
Fix typo in docs (#816)
Browse files Browse the repository at this point in the history
* Fix typo in docs

* Fix another typo

* Typo
  • Loading branch information
mbraak authored Jun 12, 2024
1 parent cf4ea90 commit 1dc02f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/_entries/events/tree-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ $('#tree1').on(
'tree.select',
function(event) {
if (event.node) {
// node was selected
var node = event.node;
// A node was selected
const node = event.node;
alert(node.name);
}
else {
// event.node is null
// a node was deselected
// e.previous_node contains the deselected node
// A node was deselected
// event.previous_node contains the deselected node
}
}
);
Expand Down

0 comments on commit 1dc02f3

Please sign in to comment.