@angular-wave/angular.ts 0.0.52 → 0.0.54

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@angular-wave/angular.ts",
3
3
  "license": "MIT",
4
- "version": "0.0.52",
4
+ "version": "0.0.54",
5
5
  "type": "module",
6
6
  "main": "dist/angular-ts.esm.js",
7
7
  "browser": "dist/angular-ts.umd.js",
@@ -2049,14 +2049,6 @@ describe("angular", () => {
2049
2049
  expect(toJson({ $few: "v" }, false)).toEqual('{"$few":"v"}');
2050
2050
  });
2051
2051
 
2052
- it("should not serialize $window object", () => {
2053
- expect(toJson(window)).toEqual('"$WINDOW"');
2054
- });
2055
-
2056
- it("should not serialize $document object", () => {
2057
- expect(toJson(document)).toEqual('"$DOCUMENT"');
2058
- });
2059
-
2060
2052
  it("should not serialize scope instances", () => {
2061
2053
  expect(toJson({ key: $rootScope })).toEqual('{"key":"$SCOPE"}');
2062
2054
  });
@@ -23,9 +23,8 @@ export function $$AnimateCssDriverProvider($$animationProvider) {
23
23
  "$animateCss",
24
24
  "$$AnimateRunner",
25
25
  "$rootElement",
26
- "$document",
27
- function ($animateCss, $$AnimateRunner, $rootElement, $document) {
28
- const bodyNode = $document[0].body;
26
+ function ($animateCss, $$AnimateRunner, $rootElement) {
27
+ const bodyNode = document.body;
29
28
  const rootNode = getDomNode($rootElement);
30
29
 
31
30
  const rootBodyElement = JQLite(
@@ -146,14 +146,12 @@ export function $$AnimateQueueProvider($animateProvider) {
146
146
  this.$get = [
147
147
  "$rootScope",
148
148
  "$rootElement",
149
- "$document",
150
149
  "$$animation",
151
150
  "$$AnimateRunner",
152
151
  "$templateRequest",
153
152
  function (
154
153
  $rootScope,
155
154
  $rootElement,
156
- $document,
157
155
  $$animation,
158
156
  $$AnimateRunner,
159
157
  $templateRequest,
@@ -739,7 +737,7 @@ export function $$AnimateQueueProvider($animateProvider) {
739
737
  * d) the element is not a child of the $rootElement
740
738
  */
741
739
  function areAnimationsAllowed(node, parentNode) {
742
- const bodyNode = $document[0].body;
740
+ const bodyNode = document.body;
743
741
  const rootNode = getDomNode($rootElement);
744
742
 
745
743
  let bodyNodeDetected = node === bodyNode || node.nodeName === "HTML";