소스 검색

fix: polyfill SVGElement.prototype.contains for IE

Jonas 5 년 전
부모
커밋
4b1dcc0404
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/polyfills.js

+ 2 - 0
src/polyfills.js

@@ -6,3 +6,5 @@ import "element-remove"
 import "classlist-polyfill"
 import "@webcomponents/template"
 import "custom-event-polyfill"
+
+SVGElement.prototype.contains = SVGElement.prototype.contains || HTMLElement.prototype.contains