MCPcopy Create free account
hub / github.com/ampproject/amphtml / elementsContains_

Method elementsContains_

extensions/amp-bind/0.1/bind-impl.js:1136–1143  ·  view source on GitHub ↗

* Returns true if `el` is contained within any element in `elements`. * @param {!Array<!Element>} elements * @param {!Element} el * @return {boolean} * @private

(elements, el)

Source from the content-addressed store, hash-verified

1134 * @private
1135 */
1136 elementsContains_(elements, el) {
1137 for (let i = 0; i < elements.length; i++) {
1138 if (elements[i].contains(el)) {
1139 return true;
1140 }
1141 }
1142 return false;
1143 }
1144
1145 /**
1146 * Determines which properties to update based on results of evaluation

Callers 1

verify_Method · 0.95

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected