rction.js 475 B

123456789101112131415
  1. /*!
  2. * rction v0.1
  3. * A lightweight helper function for creating reactive, state-based components and UI
  4. * (c) 2020 Herton Fontineli Dantas
  5. * MIT License
  6. * http://github.com/cferdinandi/reef
  7. */
  8. /**
  9. * Element.matches() polyfill (simple version)
  10. * https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill
  11. */
  12. if (!Element.prototype.matches) {
  13. Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
  14. }