Skip to content

Commit f3b256a

Browse files
committed
feat: Added .getData in init function
- The code change updates the method name from `.getValue` to `.getData` in the `init` function. This change ensures consistency by accurately reflecting the purpose of the method and does not rewrite setValue function which can be used to get the innerHTML or innerText.
1 parent 55188aa commit f3b256a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function init(element) {
4343
if (!source) {
4444
sources.set(element[i], { element: element[i] })
4545
element[i].renderValue = (data) => render({ source: element[i], data })
46-
element[i].getValue = () => sources.get(element[i]).data
46+
element[i].getData = () => sources.get(element[i]).data
4747
}
4848
}
4949
}

0 commit comments

Comments
 (0)