@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.
- package/animations.d.ts +1 -1
- package/browser/browser.d.ts +1 -1
- package/browser/testing/testing.d.ts +1 -1
- package/browser/testing.d.ts +1 -1
- package/browser.d.ts +1 -1
- package/bundles/animations-browser-testing.umd.js +1 -1
- package/bundles/animations-browser-testing.umd.min.js +1 -1
- package/bundles/animations-browser-testing.umd.min.js.map +1 -1
- package/bundles/animations-browser.umd.js +682 -665
- package/bundles/animations-browser.umd.js.map +1 -1
- package/bundles/animations-browser.umd.min.js +21 -21
- package/bundles/animations-browser.umd.min.js.map +1 -1
- package/bundles/animations.umd.js +1 -1
- package/bundles/animations.umd.min.js +1 -1
- package/bundles/animations.umd.min.js.map +1 -1
- package/esm2015/browser/src/render/css_keyframes/css_keyframes_driver.js +2 -2
- package/esm2015/browser/src/render/css_keyframes/element_animation_style_handler.js +3 -3
- package/esm2015/browser/src/render/shared.js +12 -2
- package/esm2015/src/version.js +1 -1
- package/fesm2015/animations.js +1 -1
- package/fesm2015/browser/testing.js +1 -1
- package/fesm2015/browser.js +14 -4
- package/fesm2015/browser.js.map +1 -1
- package/package.json +2 -2
package/fesm2015/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v11.0.
|
|
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
|
-
|
|
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
|
|
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
|
}
|