@@ -27,7 +27,7 @@ import { MdcDialogRef } from './dialog-ref';
2727import { MdcDialogConfig } from './dialog-config' ;
2828
2929import { strings } from '@material/dialog/constants' ;
30- import { ponyfill } from '@material/dom' ;
30+ import { matches , closest } from '@material/dom/ponyfill ' ;
3131import { MDCDialogFoundation , MDCDialogAdapter , util } from '@material/dialog' ;
3232
3333const LAYOUT_EVENTS = [ 'resize' , 'orientationchange' ] ;
@@ -89,14 +89,14 @@ export class MdcDialogComponent extends MDCComponent<MDCDialogFoundation> implem
8989 document . body ! . classList . remove ( className ) ;
9090 }
9191 } ,
92- eventTargetMatches : ( target : EventTarget , selector : string ) => ponyfill . matches ( target as Element , selector ) ,
92+ eventTargetMatches : ( target : EventTarget , selector : string ) => matches ( target as Element , selector ) ,
9393 trapFocus : ( ) => this . _focusTrapInstance ! . activate ( ) ,
9494 releaseFocus : ( ) => this . _focusTrapInstance ! . deactivate ( ) ,
9595 isContentScrollable : ( ) =>
9696 ! ! this . _content && this . _scrollable && util . isScrollable ( this . _content . elementRef . nativeElement ) ,
9797 areButtonsStacked : ( ) => util . areTopsMisaligned ( this . _buttons as any ) ,
9898 getActionFromEvent : ( event : Event ) => {
99- const element = ponyfill . closest ( event . target as Element , `[${ strings . ACTION_ATTRIBUTE } ]` ) ;
99+ const element = closest ( event . target as Element , `[${ strings . ACTION_ATTRIBUTE } ]` ) ;
100100 return element && element . getAttribute ( strings . ACTION_ATTRIBUTE ) ;
101101 } ,
102102 clickDefaultButton : ( ) => {
0 commit comments