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

Unified Diff: static/dist/js/vendor/ie8.min.js

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/ie8.min.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/dist/js/vendor/ie8.min.js
@@ -0,0 +1,3 @@
+/*! (C) WebReflection Mit Style License */
+!function(t){function e(t,e,n,o){for(var r,a,u=n.slice(),l=i(e,t),c=0,s=u.length;c<s&&(r=u[c],"object"==typeof r?"function"==typeof r.handleEvent&&r.handleEvent(l):r.call(t,l),!l.stoppedImmediatePropagation);c++);return a=!l.stoppedPropagation,o&&a&&t.parentNode?t.parentNode.dispatchEvent(l):!l.defaultPrevented}function n(t,e){return{configurable:!0,get:t,set:e}}function o(t,e,o){var i=y(e||t,o);g(t,"textContent",n(function(){return i.get.call(this)},function(t){i.set.call(this,t)}))}function i(t,e){return t.currentTarget=e,t.eventPhase=t.target===t.currentTarget?2:3,t}function r(t,e){for(var n=t.length;n--&&t[n]!==e;);return n}function a(){if("BR"===this.tagName)return"\n";for(var t=this.firstChild,e=[];t;)8!==t.nodeType&&7!==t.nodeType&&e.push(t.textContent),t=t.nextSibling;return e.join("")}function u(t){var e=document.createEvent("Event");e.initEvent("input",!0,!0),(t.srcElement||t.fromElement||document).dispatchEvent(e)}function l(t){!f&&C.test(document.readyState)&&(f=!f,document.detachEvent(d,l),t=document.createEvent("Event"),t.initEvent(v,!0,!0),document.dispatchEvent(t))}function c(t){return function(){return x[t]||document.body&&document.body[t]||0}}function s(t){for(var e;e=this.lastChild;)this.removeChild(e);null!=t&&this.appendChild(document.createTextNode(t))}function p(e,n){return n||(n=t.event),n.target||(n.target=n.srcElement||n.fromElement||document),n.timeStamp||(n.timeStamp=(new Date).getTime()),n}if(!document.createEvent){var h=!0,f=!1,d="onreadystatechange",v="DOMContentLoaded",m="__IE8__"+Math.random(),g=Object.defineProperty||function(t,e,n){t[e]=n.value},E=Object.defineProperties||function(e,n){for(var o in n)if(b.call(n,o))try{g(e,o,n[o])}catch(n){t.console&&console.log(o+" failed on object:",e,n.message)}},y=Object.getOwnPropertyDescriptor,b=Object.prototype.hasOwnProperty,S=t.Element.prototype,L=t.Text.prototype,T=/^[a-z]+$/,C=/loaded|complete/,P={},w=document.createElement("div"),x=document.documentElement,_=x.removeAttribute,j=x.setAttribute,N=function(t){return{enumerable:!0,writable:!0,configurable:!0,value:t}};o(t.HTMLCommentElement.prototype,S,"nodeValue"),o(t.HTMLScriptElement.prototype,null,"text"),o(L,null,"nodeValue"),o(t.HTMLTitleElement.prototype,null,"text"),g(t.HTMLStyleElement.prototype,"textContent",function(t){return n(function(){return t.get.call(this.styleSheet)},function(e){t.set.call(this.styleSheet,e)})}(y(t.CSSStyleSheet.prototype,"cssText")));var O=/\b\s*alpha\s*\(\s*opacity\s*=\s*(\d+)\s*\)/;g(t.CSSStyleDeclaration.prototype,"opacity",{get:function(){var t=this.filter.match(O);return t?(t[1]/100).toString():""},set:function(t){this.zoom=1;var e=!1;t=t<1?" alpha(opacity="+Math.round(100*t)+")":"",this.filter=this.filter.replace(O,function(){return e=!0,t}),!e&&t&&(this.filter+=t)}}),E(S,{textContent:{get:a,set:s},firstElementChild:{get:function(){for(var t=this.childNodes||[],e=0,n=t.length;e<n;e++)if(1==t[e].nodeType)return t[e]}},lastElementChild:{get:function(){for(var t=this.childNodes||[],e=t.length;e--;)if(1==t[e].nodeType)return t[e]}},oninput:{get:function(){return this._oninput||null},set:function(t){this._oninput&&(this.removeEventListener("input",this._oninput),this._oninput=t,t&&this.addEventListener("input",t))}},previousElementSibling:{get:function(){for(var t=this.previousSibling;t&&1!=t.nodeType;)t=t.previousSibling;return t}},nextElementSibling:{get:function(){for(var t=this.nextSibling;t&&1!=t.nodeType;)t=t.nextSibling;return t}},childElementCount:{get:function(){for(var t=0,e=this.childNodes||[],n=e.length;n--;t+=1==e[n].nodeType);return t}},addEventListener:N(function(t,n,o){if("function"==typeof n||"object"==typeof n){var i,a,l=this,c="on"+t,s=l[m]||g(l,m,{value:{}})[m],h=s[c]||(s[c]={}),f=h.h||(h.h=[]);if(!b.call(h,"w")){if(h.w=function(t){return t[m]||e(l,p(l,t),f,!1)},!b.call(P,c))if(T.test(t)){try{i=document.createEventObject(),i[m]=!0,9!=l.nodeType&&(null==l.parentNode&&w.appendChild(l),(a=l.getAttribute(c))&&_.call(l,c)),l.fireEvent(c,i),P[c]=!0}catch(t){for(P[c]=!1;w.hasChildNodes();)w.removeChild(w.firstChild)}null!=a&&j.call(l,c,a)}else P[c]=!1;(h.n=P[c])&&l.attachEvent(c,h.w)}r(f,n)<0&&f[o?"unshift":"push"](n),"input"===t&&l.attachEvent("onkeyup",u)}}),dispatchEvent:N(function(t){var n,o=this,i="on"+t.type,r=o[m],a=r&&r[i],u=!!a;return t.target||(t.target=o),u?a.n?o.fireEvent(i,t):e(o,t,a.h,!0):!(n=o.parentNode)||n.dispatchEvent(t),!t.defaultPrevented}),removeEventListener:N(function(t,e,n){if("function"==typeof e||"object"==typeof e){var o=this,i="on"+t,a=o[m],u=a&&a[i],l=u&&u.h,c=l?r(l,e):-1;-1<c&&l.splice(c,1)}})}),E(L,{addEventListener:N(S.addEventListener),dispatchEvent:N(S.dispatchEvent),removeEventListener:N(S.removeEventListener)}),E(t.XMLHttpRequest.prototype,{addEventListener:N(function(t,e,n){var o=this,i="on"+t,a=o[m]||g(o,m,{value:{}})[m],u=a[i]||(a[i]={}),l=u.h||(u.h=[]);r(l,e)<0&&(o[i]||(o[i]=function(){var e=document.createEvent("Event");e.initEvent(t,!0,!0),o.dispatchEvent(e)}),l[n?"unshift":"push"](e))}),dispatchEvent:N(function(t){var n=this,o="on"+t.type,i=n[m],r=i&&i[o];return!!r&&(r.n?n.fireEvent(o,t):e(n,t,r.h,!0))}),removeEventListener:N(S.removeEventListener)});var M=y(Event.prototype,"button").get;E(t.Event.prototype,{bubbles:N(!0),cancelable:N(!0),preventDefault:N(function(){this.cancelable&&(this.returnValue=!1)}),stopPropagation:N(function(){this.stoppedPropagation=!0,this.cancelBubble=!0}),stopImmediatePropagation:N(function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}),initEvent:N(function(t,e,n){this.type=t,this.bubbles=!!e,this.cancelable=!!n,this.bubbles||this.stopPropagation()}),pageX:{get:function(){return this._pageX||(this._pageX=this.clientX+t.scrollX-(x.clientLeft||0))}},pageY:{get:function(){return this._pageY||(this._pageY=this.clientY+t.scrollY-(x.clientTop||0))}},which:{get:function(){return this.keyCode?this.keyCode:isNaN(this.button)?void 0:this.button+1}},charCode:{get:function(){return this.keyCode&&"keypress"==this.type?this.keyCode:0}},buttons:{get:function(){return M.call(this)}},button:{get:function(){var t=this.buttons;return 1&t?0:2&t?2:4&t?1:void 0}},defaultPrevented:{get:function(){var t=this.returnValue;return void 0!==t&&!t}},relatedTarget:{get:function(){var t=this.type;return"mouseover"===t?this.fromElement:"mouseout"===t?this.toElement:null}}}),E(t.HTMLDocument.prototype,{defaultView:{get:function(){return this.parentWindow}},textContent:{get:function(){return 11===this.nodeType?a.call(this):null},set:function(t){11===this.nodeType&&s.call(this,t)}},addEventListener:N(function(e,n,o){var i=this;S.addEventListener.call(i,e,n,o),h&&e===v&&!C.test(i.readyState)&&(h=!1,i.attachEvent(d,l),t==top&&function t(e){try{i.documentElement.doScroll("left"),l()}catch(e){setTimeout(t,50)}}())}),dispatchEvent:N(S.dispatchEvent),removeEventListener:N(S.removeEventListener),createEvent:N(function(t){var e;if("Event"!==t)throw new Error("unsupported "+t);return e=document.createEventObject(),e.timeStamp=(new Date).getTime(),e})}),E(t.Window.prototype,{getComputedStyle:N(function(){function t(t){this._=t}function e(){}var n=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,o=/^(top|right|bottom|left)$/,i=/\-([a-z])/g,r=function(t,e){return e.toUpperCase()};return t.prototype.getPropertyValue=function(t){var e,a,u,l=this._,c=l.style,s=l.currentStyle,p=l.runtimeStyle;return"opacity"==t?c.opacity||"1":(t=("float"===t?"style-float":t).replace(i,r),e=s?s[t]:c[t],n.test(e)&&!o.test(t)&&(a=c.left,u=p&&p.left,u&&(p.left=s.left),c.left="fontSize"===t?"1em":e,e=c.pixelLeft+"px",c.left=a,u&&(p.left=u)),null==e?e:e+""||"auto")},e.prototype.getPropertyValue=function(){return null},function(n,o){return o?new e(n):new t(n)}}()),addEventListener:N(function(n,o,i){var a,u=t,l="on"+n;u[l]||(u[l]=function(t){return e(u,p(u,t),a,!1)&&void 0}),a=u[l][m]||(u[l][m]=[]),r(a,o)<0&&a[i?"unshift":"push"](o)}),dispatchEvent:N(function(e){var n=t["on"+e.type];return!n||!1!==n.call(t,e)&&!e.defaultPrevented}),removeEventListener:N(function(e,n,o){var i="on"+e,a=(t[i]||Object)[m],u=a?r(a,n):-1;-1<u&&a.splice(u,1)}),pageXOffset:{get:c("scrollLeft")},pageYOffset:{get:c("scrollTop")},scrollX:{get:c("scrollLeft")},scrollY:{get:c("scrollTop")},innerWidth:{get:c("clientWidth")},innerHeight:{get:c("clientHeight")}}),t.HTMLElement=t.Element,function(t,e,n){for(n=0;n<e.length;n++)document.createElement(e[n]);t.length||document.createStyleSheet(""),t[0].addRule(e.join(","),"display:block;")}(document.styleSheets,["header","nav","section","article","aside","footer"])}}(this.window||global);
+//# sourceMappingURL=ie8.min.js.map

Powered by Google App Engine
This is Rietveld