Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Resolve issue with KeyRegistry blowing up on applications with weird …
Browse files Browse the repository at this point in the history
…ES6 shims (#739)
  • Loading branch information
clbond authored Oct 18, 2016
1 parent 3b10679 commit 9d57c1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/communication/message-factory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {DebugElement} from '@angular/core';

import {
Message,
MessageResponse,
Expand Down
4 changes: 1 addition & 3 deletions src/tree/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {EventEmitter} from '@angular/core';

import {
AsyncSubject,
BehaviorSubject,
Expand Down Expand Up @@ -67,7 +65,7 @@ const loadMetadata =

if (instance != null && isScalar(instance) === false) {
switch (functionName(instance.constructor)) {
case functionName(EventEmitter):
case 'EventEmitter':
flags |= PropertyMetadata.EventEmitter;
break;
case functionName(AsyncSubject):
Expand Down
4 changes: 1 addition & 3 deletions src/tree/mutable-tree-factory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import {DebugElement} from '@angular/core';

import {MutableTree} from './mutable-tree';
import {transform} from './transformer';
import {Node} from './node';
Expand Down Expand Up @@ -31,7 +29,7 @@ export interface ElementTransformResult {
}

export const createTreeFromElements =
(roots: Array<DebugElement>, options: SimpleOptions): ElementTransformResult => {
(roots: Array<any /* DebugElement */>, options: SimpleOptions): ElementTransformResult => {
const tree = new MutableTree();

/// Keep track of the number of nodes that we process as part of this transformation
Expand Down

0 comments on commit 9d57c1d

Please sign in to comment.