Skip to content

Commit

Permalink
CR Fix: remove field from SerializedNode
Browse files Browse the repository at this point in the history
  • Loading branch information
meirotstein committed Apr 19, 2018
1 parent dfc03fa commit 1579e78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Constructs a new JSONEditor.
callback signature should be:
```js
/**
* @typedef {{field: String, value: String|Object|Number|Boolean, path: Array.<String|Number>} SerializableNode
* @typedef {{value: String|Object|Number|Boolean, path: Array.<String|Number>}} SerializableNode
*
* @param {SerializableNode=} start
* @param {SerializableNode=} end
Expand Down
3 changes: 1 addition & 2 deletions src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,13 @@ Node.prototype.findNodeByPath = function (path) {
};

/**
* @typedef {{field: String, value: String|Object|Number|Boolean, path: Array.<String|Number>} SerializableNode
* @typedef {{value: String|Object|Number|Boolean, path: Array.<String|Number>}} SerializableNode
*
* Returns serializable representation for the node
* @return {SerializedNode}
*/
Node.prototype.serialize = function () {
return {
field: this.getField(),
value: this.getValue(),
path: this.getPath()
};
Expand Down

0 comments on commit 1579e78

Please sign in to comment.