From 0dced2511be094e8f608068f3e0eee20877d2498 Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Mon, 12 Feb 2018 17:33:11 +0800 Subject: [PATCH] Update function prologue --- dist/infinite-tree.js | 3 ++- src/infinite-tree.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/infinite-tree.js b/dist/infinite-tree.js index 260a3de..3a71a27 100644 --- a/dist/infinite-tree.js +++ b/dist/infinite-tree.js @@ -1394,8 +1394,9 @@ var InfiniteTree = function (_events$EventEmitter) { var newNodes = [].concat(newNode || []); // Ensure array return this.addChildNodes(newNodes, index, parentNode); }; + // Checks or unchecks a node. // @param {Node} node The Node object. - // @param {boolean} [checked] Whether to check or uncheck the node. If the parameter is not specified, it will toggle between checked and unchecked state. The checked state is true when the indeterminate state is true. + // @param {boolean} [checked] Whether to check or uncheck the node. If not specified, it will toggle between checked and unchecked state. // @return {boolean} Returns true on success, false otherwise. // @example // diff --git a/src/infinite-tree.js b/src/infinite-tree.js index bb4cb94..1b56dda 100644 --- a/src/infinite-tree.js +++ b/src/infinite-tree.js @@ -531,8 +531,9 @@ class InfiniteTree extends events.EventEmitter { const newNodes = [].concat(newNode || []); // Ensure array return this.addChildNodes(newNodes, index, parentNode); } + // Checks or unchecks a node. // @param {Node} node The Node object. - // @param {boolean} [checked] Whether to check or uncheck the node. If the parameter is not specified, it will toggle between checked and unchecked state. The checked state is true when the indeterminate state is true. + // @param {boolean} [checked] Whether to check or uncheck the node. If not specified, it will toggle between checked and unchecked state. // @return {boolean} Returns true on success, false otherwise. // @example //