Skip to content

Commit

Permalink
fixup! fix(upgrade): properly destroy upgraded component elements and…
Browse files Browse the repository at this point in the history
… descendants
  • Loading branch information
jbedard committed Oct 5, 2018
1 parent 2493652 commit d32c85c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/upgrade/src/common/angular1.ts
Expand Up @@ -285,11 +285,8 @@ export const module: typeof angular.module = (prefix, dependencies?) =>
angular.module(prefix, dependencies);

export const element: typeof angular.element = Object.assign(
(e: string | Element | Document | IAugmentedJQuery) => angular.element(e),
{
cleanData: (nodes: NodeList | Node[]) => angular.element.cleanData(nodes)
}
);
(e: string | Element | Document | IAugmentedJQuery) => angular.element(e),
{cleanData: (nodes: Node[] | NodeList) => angular.element.cleanData(nodes)});

export const resumeBootstrap: typeof angular.resumeBootstrap = () => angular.resumeBootstrap();

Expand Down
2 changes: 1 addition & 1 deletion packages/upgrade/test/dynamic/upgrade_spec.ts
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/

import {ChangeDetectorRef, Component, Directive, EventEmitter, Input, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgZone, OnChanges, OnDestroy, Output, SimpleChange, SimpleChanges, Testability, destroyPlatform, forwardRef} from '@angular/core';
import {ChangeDetectorRef, Component, EventEmitter, Input, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgZone, OnChanges, OnDestroy, Output, SimpleChange, SimpleChanges, Testability, destroyPlatform, forwardRef} from '@angular/core';
import {async, fakeAsync, flushMicrotasks, tick} from '@angular/core/testing';
import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
Expand Down

0 comments on commit d32c85c

Please sign in to comment.