Skip to content

Commit

Permalink
Added _ to waitForElement function name
Browse files Browse the repository at this point in the history
  • Loading branch information
gooddaytoday committed Jun 16, 2022
1 parent 43146e2 commit 58df7e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/waitForElement.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/**
* Waits until Element will appear
*
* @api private
* @method _waitForElement
* @param {string} elSelector Selector to locate Element
* @param {() => void} callback Callback to be called after Element appearance
*/
export default function waitForElement(elSelector, callback) {
export default function _waitForElement(elSelector, callback) {
if (document.querySelector(elSelector) !== null) {
callback();
return;
Expand Down

0 comments on commit 58df7e1

Please sign in to comment.