@angular/animations 11.0.2 → 11.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v11.0.2
2
+ * @license Angular v11.0.3
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -159,7 +159,17 @@ if (_isNode || typeof Element !== 'undefined') {
159
159
  _query = (element, selector, multi) => {
160
160
  let results = [];
161
161
  if (multi) {
162
- results.push(...element.querySelectorAll(selector));
162
+ // DO NOT REFACTOR TO USE SPREAD SYNTAX.
163
+ // For element queries that return sufficiently large NodeList objects,
164
+ // using spread syntax to populate the results array causes a RangeError
165
+ // due to the call stack limit being reached. `Array.from` can not be used
166
+ // as well, since NodeList is not iterable in IE 11, see
167
+ // https://developer.mozilla.org/en-US/docs/Web/API/NodeList
168
+ // More info is available in #38551.
169
+ const elems = element.querySelectorAll(selector);
170
+ for (let i = 0; i < elems.length; i++) {
171
+ results.push(elems[i]);
172
+ }
163
173
  }
164
174
  else {
165
175
  const elm = element.querySelector(selector);
@@ -4135,7 +4145,7 @@ function setAnimationStyle(element, name, value, index) {
4135
4145
  element.style[prop] = value;
4136
4146
  }
4137
4147
  function getAnimationStyle(element, name) {
4138
- return element.style[ANIMATION_PROP + name];
4148
+ return element.style[ANIMATION_PROP + name] || '';
4139
4149
  }
4140
4150
  function countChars(value, char) {
4141
4151
  let count = 0;
@@ -4412,7 +4422,7 @@ class CssKeyframesDriver {
4412
4422
  }
4413
4423
  _notifyFaultyScrubber() {
4414
4424
  if (!this._warningIssued) {
4415
- console.warn('@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n', ' visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');
4425
+ console.warn('@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n', ' visit https://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');
4416
4426
  this._warningIssued = true;
4417
4427
  }
4418
4428
  }