MCPcopy
hub / github.com/jsdom/jsdom / _update

Method _update

lib/jsdom/living/nodes/HTMLCollection-impl.js:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 return null;
42 }
43 _update() {
44 if (this._version < this._element._version) {
45 const snapshot = this._query();
46 for (let i = 0; i < snapshot.length; i++) {
47 this._list[i] = snapshot[i];
48 }
49 this._list.length = snapshot.length;
50 this._version = this._element._version;
51 }
52 }
53 get [idlUtils.supportedPropertyIndices]() {
54 this._update();
55 return this._list.keys();

Callers 11

constructorMethod · 0.95
lengthMethod · 0.95
itemMethod · 0.95
namedItemMethod · 0.95
[Symbol.iterator]Method · 0.95
entriesMethod · 0.95
filterMethod · 0.95
mapMethod · 0.95
indexOfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected