Skip to content

Commit

Permalink
fix(animations): update comment
Browse files Browse the repository at this point in the history
update comment to add more description
  • Loading branch information
basherr committed Nov 14, 2020
1 parent bae17c1 commit e7390eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/animations/browser/src/render/shared.ts
Expand Up @@ -186,8 +186,10 @@ if (_isNode || typeof Element !== 'undefined') {
// DO NOT REFACTOR TO USE SPREAD SYNTAX.
// For element queries that return sufficiently large NodeList objects,
// using spread syntax to populate the results array causes a RangeError
// due to the call stack limit being reached.
// See following issue: #38551
// due to the call stack limit being reached. `Array.from` can not be used
// as well, since NodeList is not iterable in IE 11, see
// https://developer.mozilla.org/en-US/docs/Web/API/NodeList
// More info is available in #38551.
const elems = element.querySelectorAll(selector);
for (let i = 0; i < elems.length; i++) {
results.push(elems[i]);
Expand Down

0 comments on commit e7390eb

Please sign in to comment.