Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/dist/js/vendor/element-closest.min.js.map

Issue 29624561: Issue 6104 - Minified code in help center repository (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Move all requires to top of gulpfile.js Created Dec. 4, 2017, 2:10 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/dist/js/vendor/element-closest.min.js.map
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/dist/js/vendor/element-closest.min.js.map
@@ -0,0 +1,1 @@
+{"version":3,"sources":["element-closest.js"],"names":["ElementProto","matches","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","selector","element","this","elements","document","ownerDocument","querySelectorAll","index","Boolean","closest","nodeType","parentNode","window","Element","prototype"],"mappings":";CAEA,SAAWA,GAC0B,kBAAzBA,GAAaC,UACvBD,EAAaC,QAAUD,EAAaE,mBAAqBF,EAAaG,oBAAsBH,EAAaI,uBAAyB,SAAiBC,GAKlJ,IAJA,GAAIC,GAAUC,KACVC,GAAYF,EAAQG,UAAYH,EAAQI,eAAeC,iBAAiBN,GACxEO,EAAQ,EAELJ,EAASI,IAAUJ,EAASI,KAAWN,KAC3CM,CAGH,OAAOC,SAAQL,EAASI,MAIU,kBAAzBZ,GAAac,UACvBd,EAAac,QAAU,SAAiBT,GAGvC,IAFA,GAAIC,GAAUC,KAEPD,GAAgC,IAArBA,EAAQS,UAAgB,CACzC,GAAIT,EAAQL,QAAQI,GACnB,MAAOC,EAGRA,GAAUA,EAAQU,WAGnB,MAAO,SAGPC,OAAOC,QAAQC","file":"element-closest.min.js","sourcesContent":["/*! @source https://github.com/jonathantneal/closest/blob/master/element-closest.js */\n\n(function (ElementProto) {\n\tif (typeof ElementProto.matches !== 'function') {\n\t\tElementProto.matches = ElementProto.msMatchesSelector || ElementProto.mozMatchesSelector || ElementProto.webkitMatchesSelector || function matches(selector) {\n\t\t\tvar element = this;\n\t\t\tvar elements = (element.document || element.ownerDocument).querySelectorAll(selector);\n\t\t\tvar index = 0;\n\n\t\t\twhile (elements[index] && elements[index] !== element) {\n\t\t\t\t++index;\n\t\t\t}\n\n\t\t\treturn Boolean(elements[index]);\n\t\t};\n\t}\n\n\tif (typeof ElementProto.closest !== 'function') {\n\t\tElementProto.closest = function closest(selector) {\n\t\t\tvar element = this;\n\n\t\t\twhile (element && element.nodeType === 1) {\n\t\t\t\tif (element.matches(selector)) {\n\t\t\t\t\treturn element;\n\t\t\t\t}\n\n\t\t\t\telement = element.parentNode;\n\t\t\t}\n\n\t\t\treturn null;\n\t\t};\n\t}\n})(window.Element.prototype);"]}

Powered by Google App Engine
This is Rietveld