summaryrefslogtreecommitdiffstats
path: root/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js')
-rw-r--r--wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js b/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js
new file mode 100644
index 0000000..490d8d3
--- /dev/null
+++ b/wp-includes/js/dist/vendor/wp-polyfill-element-closest.min.js
@@ -0,0 +1 @@
+!function(e){var t=window.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=0;t[o]&&t[o]!==this;)++o;return Boolean(t[o])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(); \ No newline at end of file