@angular/animations 4.4.0-RC.0 → 4.4.4

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,6 +1,6 @@
1
1
  import * as tslib_1 from "tslib";
2
2
  /**
3
- * @license Angular v4.4.0-RC.0
3
+ * @license Angular v4.4.4
4
4
  * (c) 2010-2017 Google, Inc. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v4.4.0-RC.0
2
+ * @license Angular v4.4.4
3
3
  * (c) 2010-2017 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import * as tslib_1 from "tslib";
2
2
  /**
3
- * @license Angular v4.4.0-RC.0
3
+ * @license Angular v4.4.4
4
4
  * (c) 2010-2017 Google, Inc. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1994,7 +1994,11 @@ var AnimationTimelineContext = (function () {
1994
1994
  }
1995
1995
  if (selector.length > 0) {
1996
1996
  var /** @type {?} */ multi = limit != 1;
1997
- results.push.apply(results, this._driver.query(this.element, selector, multi));
1997
+ var /** @type {?} */ elements = this._driver.query(this.element, selector, multi);
1998
+ if (limit !== 0) {
1999
+ elements = elements.slice(0, limit);
2000
+ }
2001
+ results.push.apply(results, elements);
1998
2002
  }
1999
2003
  if (!optional && results.length == 0) {
2000
2004
  errors.push("`query(\"" + originalSelector + "\")` returned zero elements. (Use `query(\"" + originalSelector + "\", { optional: true })` if you wish to allow this.)");