Skip to content

Commit f02db22

Browse files
committed
Update code comments
1 parent c3b1b13 commit f02db22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class InfiniteTree extends events.EventEmitter {
344344
removeNode(node) {
345345
// TODO
346346
}
347-
// Scroll to this node.
347+
// Set the current scroll position to this node.
348348
// @param {object} node
349349
// @return {number} Returns the vertical scroll position, or -1 on error.
350350
scrollToNode(node) {
@@ -361,7 +361,7 @@ class InfiniteTree extends events.EventEmitter {
361361
const rowHeight = (firstChild && firstChild.offsetHeight) || 0;
362362
return this.scrollTop(nodeIndex * rowHeight);
363363
}
364-
// Get or set the current vertical position of the scroll bar.
364+
// Get/set the current vertical position of the scroll bar.
365365
// @param {number} [value] An integer indicating the new position to set the scroll bar to.
366366
// @return {number} Returns the vertical scroll position.
367367
scrollTop(value) {

0 commit comments

Comments
 (0)