Skip to content

Commit bee03fe

Browse files
committed
update straggler
1 parent c1bbbb4 commit bee03fe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/polyfills/stubs/intersection-observer-stub.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ export class IntersectionObserverStub {
268268
upgrade_(Ctor) {
269269
const inst = new Ctor(this.callback_, this.options_);
270270
this.inst_ = inst;
271-
this.elements_.forEach((e) => inst.observe(e));
271+
for (const e of this.elements_) {
272+
inst.observe(e);
273+
}
272274
this.elements_ = null;
273275
}
274276
}

0 commit comments

Comments
 (0)