Skip to content

Commit

Permalink
Changed variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster committed Oct 21, 2024
1 parent becf0db commit 4b49d88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/Injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Injector extends Backbone.Controller {
}

processNode(node) {
if (node._isBionic) return;
if (node._isDefinitioned) return;
const textNodes = [...node.childNodes]
.filter(node => node.nodeType === Node.TEXT_NODE)
.filter(node => node.nodeValue.trim());
Expand All @@ -47,7 +47,7 @@ class Injector extends Backbone.Controller {
if (isInsideForbiddenParents) return;
const isInsideRequiredParents = Boolean($(parentElement).closest(requireParents).length);
if (!isInsideRequiredParents) return;
parentElement._isBionic = true;
parentElement._isDefinitioned = true;
const value = String(node.nodeValue);
const children = [];
const keywords = [...value.matchAll(Adapt.definitions._regexp)];
Expand Down Expand Up @@ -81,7 +81,7 @@ class Injector extends Backbone.Controller {
}
children.push(...selected.map(copy => {
parentElement.insertBefore(copy, node);
copy._isBionic = true;
copy._isDefinitioned = true;
return copy;
}));
parentElement.removeChild(node);
Expand Down

0 comments on commit 4b49d88

Please sign in to comment.