From 32eacd29e5a9c0297db3f42168f49e954e24a20e Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 16 Aug 2016 16:08:39 -0700 Subject: [PATCH] fix(ngc): don't emit HTMLElement in JS files (#1061) --- src/core/ripple/ripple.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/ripple/ripple.ts b/src/core/ripple/ripple.ts index 0ba7a6d52c3..79a7bad9d4c 100644 --- a/src/core/ripple/ripple.ts +++ b/src/core/ripple/ripple.ts @@ -24,7 +24,9 @@ export class MdRipple implements OnInit, OnDestroy, OnChanges { * The element that triggers the ripple when click events are received. Defaults to the * directive's host element. */ - @Input('md-ripple-trigger') trigger: HTMLElement; + // Prevent TS metadata emit from referencing HTMLElement in ripple.js + // That breaks tests running in node that load material components. + @Input('md-ripple-trigger') trigger: HTMLElement|HTMLElement; /** * Whether the ripple always originates from the center of the host element's bounds, rather * than originating from the location of the click event.