Skip to content

Commit

Permalink
fix(ngc): don't emit HTMLElement in JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Aug 16, 2016
1 parent 5dbedee commit fd5aa49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/ripple/ripple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import {
ForegroundRippleState,
} from './ripple-renderer';

// Prevent TS metadata emit from referencing HTMLElement in ripple.js
// That breaks tests running in node that load material components.
type _HTMLElement = HTMLElement;

@Directive({
selector: '[md-ripple]',
Expand All @@ -24,7 +27,7 @@ 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;
@Input('md-ripple-trigger') trigger: _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.
Expand Down

0 comments on commit fd5aa49

Please sign in to comment.