We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1bbbb4 commit bee03feCopy full SHA for bee03fe
1 file changed
src/polyfills/stubs/intersection-observer-stub.js
@@ -268,7 +268,9 @@ export class IntersectionObserverStub {
268
upgrade_(Ctor) {
269
const inst = new Ctor(this.callback_, this.options_);
270
this.inst_ = inst;
271
- this.elements_.forEach((e) => inst.observe(e));
+ for (const e of this.elements_) {
272
+ inst.observe(e);
273
+ }
274
this.elements_ = null;
275
}
276
0 commit comments