Skip to content

Commit

Permalink
Fixed broken multi-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jul 24, 2017
1 parent f6e699e commit 2110d25
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor


## not yet released, version 5.9.3

- Fixed broken multi-selection.


## 2017-07-13, version 5.9.2

- Fixed a bug in the JSON sanitizer.
Expand Down
10 changes: 10 additions & 0 deletions src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,16 @@ Node.prototype.getLevel = function() {
return (this.parent ? this.parent.getLevel() + 1 : 0);
};

/**
* Get jsonpath of the current node
* @return {Node[]} Returns an array with nodes
*/
Node.prototype.getNodePath = function () {
var path = this.parent ? this.parent.getNodePath() : [];
path.push(this);
return path;
};

/**
* Create a clone of a node
* The complete state of a clone is copied, including whether it is expanded or
Expand Down

0 comments on commit 2110d25

Please sign in to comment.