first commit
This commit is contained in:
parent
56369fe86a
commit
db0222e83a
1 changed files with 9 additions and 2 deletions
|
@ -31,7 +31,14 @@ function waitForKeyElements(
|
|||
search.
|
||||
*/
|
||||
) {
|
||||
let targetNodes, btargetsFound;
|
||||
/**
|
||||
* @typedef targetNodes
|
||||
* @type {Array}
|
||||
*/
|
||||
|
||||
/** @type {targetNodes} */
|
||||
let targetNodes;
|
||||
let btargetsFound;
|
||||
|
||||
if (typeof iframeSelector == "undefined")
|
||||
targetNodes = document.querySelector(selectorTxt);
|
||||
|
@ -43,7 +50,7 @@ function waitForKeyElements(
|
|||
/*--- Found target node(s). Go through each and act if they
|
||||
are new.
|
||||
*/
|
||||
targetNodes.each(function () {
|
||||
targetNodes.forEach(function () {
|
||||
let jThis = this;
|
||||
let alreadyFound = jThis.data("alreadyFound") || false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue