UNPKG

@cycle/dom

Version:

The standard DOM Driver for Cycle.js, based on Snabbdom

18 lines (14 loc) 562 B
export const isIE10 = !(window as any).MutationObserver; if (isIE10) { (window as any).MutationObserver = require('mutation-observer'); } if (!Element.prototype.matches) { Element.prototype.matches = (Element as any).prototype.matchesSelector || (Element as any).prototype.mozMatchesSelector || (Element as any).prototype.msMatchesSelector || (Element as any).prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector; } import 'es6-map/implement'; // tslint:disable-line import 'es6-set/implement'; // tslint:disable-line