Procházet zdrojové kódy

fix: polyfill SVGElement.prototype.contains for IE

Jonas před 5 roky
rodič
revize
4b1dcc0404
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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