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

Side by Side Diff: static/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: Fix sourcemaps for CSS files, Change tabs to spaces Created Nov. 30, 2017, 10:03 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « static/js/vendor/html5shiv.min.js ('k') | static/js/vendor/respond.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*! (C) WebReflection Mit Style License */ 1 /*! (C) WebReflection Mit Style License */
2 (function(e){function w(e,t,n,r){for(var i,s,o=n.slice(),u=x(t,e),a=0,f=o.length ;a<f;a++){i=o[a],typeof i=="object"?typeof i.handleEvent=="function"&&i.handleEv ent(u):i.call(e,u);if(u.stoppedImmediatePropagation)break}return s=!u.stoppedPro pagation,r&&s&&e.parentNode?e.parentNode.dispatchEvent(u):!u.defaultPrevented}fu nction E(e,t){return{configurable:!0,get:e,set:t}}function S(e,t,n){var r=a(t||e ,n);o(e,"textContent",E(function(){return r.get.call(this)},function(e){r.set.ca ll(this,e)}))}function x(e,t){return e.currentTarget=t,e.eventPhase=e.target===e .currentTarget?2:3,e}function T(e,t){var n=e.length;while(n--&&e[n]!==t);return n}function N(){if(this.tagName==="BR")return"\n";var e=this.firstChild,t=[];whil e(e)e.nodeType!==8&&e.nodeType!==7&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function C(e){return e.nodeType!==9&&m.contains(e)}function k(e){var t=document.createEvent("Event");t.initEvent("input",!0,!0),(e.srcElement||e.fro mElement||document).dispatchEvent(t)}function L(e){!n&&p.test(document.readyStat e)&&(n=!n,document.detachEvent(r,L),e=document.createEvent("Event"),e.initEvent( i,!0,!0),document.dispatchEvent(e))}function A(e){var t=e==="X"?"Left":"Top",n=" client"+e,r="client"+t,i="scroll"+t,s="_@"+n;return function(){return this[s]||( this[s]=this[n]+(m[i]||document.body&&document.body[i]||0)-m[r])}}function O(e){ var t;while(t=this.lastChild)this.removeChild(t);e!=null&&this.appendChild(docum ent.createTextNode(e))}function M(t,n){return n||(n=e.event),n.target||(n.target =n.srcElement||n.fromElement||document),n.timeStamp||(n.timeStamp=(new Date).get Time()),n}if(document.createEvent)return;var t=!0,n=!1,r="onreadystatechange",i= "DOMContentLoaded",s="__IE8__"+Math.random(),o=Object.defineProperty||function(e ,t,n){e[t]=n.value},u=Object.defineProperties||function(t,n){for(var r in n)if(f .call(n,r))try{o(t,r,n[r])}catch(i){e.console&&console.log(r+" failed on object: ",t,i.message)}},a=Object.getOwnPropertyDescriptor,f=Object.prototype.hasOwnProp erty,l=e.Element.prototype,c=e.Text.prototype,h=/^[a-z]+$/,p=/loaded|complete/,d ={},v=document.createElement("div"),m=document.documentElement,g=m.removeAttribu te,y=m.setAttribute,b=function(e){return{enumerable:!0,writable:!0,configurable: !0,value:e}};S(e.HTMLCommentElement.prototype,l,"nodeValue"),S(e.HTMLScriptEleme nt.prototype,null,"text"),S(c,null,"nodeValue"),S(e.HTMLTitleElement.prototype,n ull,"text"),o(e.HTMLStyleElement.prototype,"textContent",function(e){return E(fu nction(){return e.get.call(this.styleSheet)},function(t){e.set.call(this.styleSh eet,t)})}(a(e.CSSStyleSheet.prototype,"cssText"))),u(l,{textContent:{get:N,set:O },firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length ;t<n;t++)if(e[t].nodeType==1)return e[t]}},lastElementChild:{get:function(){for( var e=this.childNodes||[],t=e.length;t--;)if(e[t].nodeType==1)return e[t]}},onin put:{get:function(){return this._oninput||null},set:function(e){this._oninput&&( this.removeEventListener("input",this._oninput),this._oninput=e,e&&this.addEvent Listener("input",e))}},previousElementSibling:{get:function(){var e=this.previou sSibling;while(e&&e.nodeType!=1)e=e.previousSibling;return e}},nextElementSiblin g:{get:function(){var e=this.nextSibling;while(e&&e.nodeType!=1)e=e.nextSibling; return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n =t.length;n--;e+=t[n].nodeType==1);return e}},addEventListener:b(function(e,t,n) {if(typeof t!="function"&&typeof t!="object")return;var r=this,i="on"+e,u=r[s]|| o(r,s,{value:{}})[s],a=u[i]||(u[i]={}),l=a.h||(a.h=[]),c,p;if(!f.call(a,"w")){a. w=function(e){return e[s]||w(r,M(r,e),l,!1)};if(!f.call(d,i))if(h.test(e)){try{c =document.createEventObject(),c[s]=!0,r.nodeType!=9&&(r.parentNode==null&&v.appe ndChild(r),(p=r.getAttribute(i))&&g.call(r,i)),r.fireEvent(i,c),d[i]=!0}catch(m) {d[i]=!1;while(v.hasChildNodes())v.removeChild(v.firstChild)}p!=null&&y.call(r,i ,p)}else d[i]=!1;(a.n=d[i])&&r.attachEvent(i,a.w)}T(l,t)<0&&l[n?"unshift":"push" ](t),e==="input"&&r.attachEvent("onkeyup",k)}),dispatchEvent:b(function(e){var t =this,n="on"+e.type,r=t[s],i=r&&r[n],o=!!i,u;return e.target||(e.target=t),o?i.n ?t.fireEvent(n,e):w(t,e,i.h,!0):(u=t.parentNode)?u.dispatchEvent(e):!0,!e.defaul tPrevented}),removeEventListener:b(function(e,t,n){if(typeof t!="function"&&type of t!="object")return;var r=this,i="on"+e,o=r[s],u=o&&o[i],a=u&&u.h,f=a?T(a,t):- 1;-1<f&&a.splice(f,1)})}),u(c,{addEventListener:b(l.addEventListener),dispatchEv ent:b(l.dispatchEvent),removeEventListener:b(l.removeEventListener)}),u(e.XMLHtt pRequest.prototype,{addEventListener:b(function(e,t,n){var r=this,i="on"+e,u=r[s ]||o(r,s,{value:{}})[s],a=u[i]||(u[i]={}),f=a.h||(a.h=[]);T(f,t)<0&&(r[i]||(r[i] =function(){var t=document.createEvent("Event");t.initEvent(e,!0,!0),r.dispatchE vent(t)}),f[n?"unshift":"push"](t))}),dispatchEvent:b(function(e){var t=this,n=" on"+e.type,r=t[s],i=r&&r[n],o=!!i;return o&&(i.n?t.fireEvent(n,e):w(t,e,i.h,!0)) }),removeEventListener:b(l.removeEventListener)}),u(e.Event.prototype,{bubbles:b (!0),cancelable:b(!0),preventDefault:b(function(){this.cancelable&&(this.default Prevented=!0,this.returnValue=!1)}),stopPropagation:b(function(){this.stoppedPro pagation=!0,this.cancelBubble=!0}),stopImmediatePropagation:b(function(){this.st oppedImmediatePropagation=!0,this.stopPropagation()}),initEvent:b(function(e,t,n ){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropag ation()}),pageX:{get:A("X")},pageY:{get:A("Y")}}),u(e.HTMLDocument.prototype,{de faultView:{get:function(){return this.parentWindow}},textContent:{get:function() {return this.nodeType===11?N.call(this):null},set:function(e){this.nodeType===11 &&O.call(this,e)}},addEventListener:b(function(n,s,o){var u=this;l.addEventListe ner.call(u,n,s,o),t&&n===i&&!p.test(u.readyState)&&(t=!1,u.attachEvent(r,L),e==t op&&function a(e){try{u.documentElement.doScroll("left"),L()}catch(t){setTimeout (a,50)}}())}),dispatchEvent:b(l.dispatchEvent),removeEventListener:b(l.removeEve ntListener),createEvent:b(function(e){var t;if(e!=="Event")throw new Error("unsu pported "+e);return t=document.createEventObject(),t.timeStamp=(new Date).getTim e(),t})}),u(e.Window.prototype,{getComputedStyle:b(function(){function i(e){this ._=e}function s(){}var e=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$ /,t=/^(top|right|bottom|left)$/,n=/\-([a-z])/g,r=function(e,t){return t.toUpperC ase()};return i.prototype.getPropertyValue=function(i){var s=this._,o=s.style,u= s.currentStyle,a=s.runtimeStyle,f,l,c;return i=(i==="float"?"style-float":i).rep lace(n,r),f=u?u[i]:o[i],e.test(f)&&!t.test(i)&&(l=o.left,c=a&&a.left,c&&(a.left= u.left),o.left=i==="fontSize"?"1em":f,f=o.pixelLeft+"px",o.left=l,c&&(a.left=c)) ,f==null?f:f+""||"auto"},s.prototype.getPropertyValue=function(){return null},fu nction(e,t){return t?new s(e):new i(e)}}()),addEventListener:b(function(t,n,r){v ar i=e,o="on"+t,u;i[o]||(i[o]=function(e){return w(i,M(i,e),u,!1)}),u=i[o][s]||( i[o][s]=[]),T(u,n)<0&&u[r?"unshift":"push"](n)}),dispatchEvent:b(function(t){var n=e["on"+t.type];return n?n.call(e,t)!==!1&&!t.defaultPrevented:!0}),removeEven tListener:b(function(t,n,r){var i="on"+t,o=(e[i]||Object)[s],u=o?T(o,n):-1;-1<u& &o.splice(u,1)})}),function(e,t,n){for(n=0;n<t.length;n++)document.createElement (t[n]);e.length||document.createStyleSheet(""),e[0].addRule(t.join(","),"display :block;")}(document.styleSheets,["header","nav","section","article","aside","foo ter"])})(this.window||global); 2 !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.stoppedPropagat ion,o&&a&&t.parentNode?t.parentNode.dispatchEvent(l):!l.defaultPrevented}functio n 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(th is,t)}))}function i(t,e){return t.currentTarget=e,t.eventPhase=t.target===t.curr entTarget?2:3,t}function r(t,e){for(var n=t.length;n--&&t[n]!==e;);return n}func tion 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.t est(document.readyState)&&(f=!f,document.detachEvent(d,l),t=document.createEvent ("Event"),t.initEvent(v,!0,!0),document.dispatchEvent(t))}function c(t){return f unction(){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.crea teTextNode(t))}function p(e,n){return n||(n=t.event),n.target||(n.target=n.srcEl ement||n.fromElement||document),n.timeStamp||(n.timeStamp=(new Date).getTime()), n}if(!document.createEvent){var h=!0,f=!1,d="onreadystatechange",v="DOMContentLo aded",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))tr y{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.Elem ent.prototype,L=t.Text.prototype,T=/^[a-z]+$/,C=/loaded|complete/,P={},w=documen t.createElement("div"),x=document.documentElement,_=x.removeAttribute,j=x.setAtt ribute,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(){retu rn 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;v ar 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,{textConten t:{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:f unction(){for(var t=this.childNodes||[],e=t.length;e--;)if(1==t[e].nodeType)retu rn t[e]}},oninput:{get:function(){return this._oninput||null},set:function(t){th is._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}},next ElementSibling:{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.chil dNodes||[],n=e.length;n--;t+=1==e[n].nodeType);return t}},addEventListener:N(fun ction(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}ca tch(t){for(P[c]=!1;w.hasChildNodes();)w.removeChild(w.firstChild)}null!=a&&j.cal l(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.d efaultPrevented}),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),dispatchEv ent:N(S.dispatchEvent),removeEventListener:N(S.removeEventListener)}),E(t.XMLHtt pRequest.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.dispatchE vent(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))}),re moveEventListener:N(S.removeEventListener)});var M=y(Event.prototype,"button").g et;E(t.Event.prototype,{bubbles:N(!0),cancelable:N(!0),preventDefault:N(function (){this.cancelable&&(this.returnValue=!1)}),stopPropagation:N(function(){this.st oppedPropagation=!0,this.cancelBubble=!0}),stopImmediatePropagation:N(function() {this.stoppedImmediatePropagation=!0,this.stopPropagation()}),initEvent:N(functi on(t,e,n){this.type=t,this.bubbles=!!e,this.cancelable=!!n,this.bubbles||this.st opPropagation()}),pageX:{get:function(){return this._pageX||(this._pageX=this.cl ientX+t.scrollX-(x.clientLeft||0))}},pageY:{get:function(){return this._pageY||( this._pageY=this.clientY+t.scrollY-(x.clientTop||0))}},which:{get:function(){ret urn this.keyCode?this.keyCode:isNaN(this.button)?void 0:this.button+1}},charCode :{get:function(){return this.keyCode&&"keypress"==this.type?this.keyCode:0}},but tons:{get:function(){return M.call(this)}},button:{get:function(){var t=this.but tons;return 1&t?0:2&t?2:4&t?1:void 0}},defaultPrevented:{get:function(){var t=th is.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.parentWin dow}},textContent:{get:function(){return 11===this.nodeType?a.call(this):null},s et: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.readyStat e)&&(h=!1,i.attachEvent(d,l),t==top&&function t(e){try{i.documentElement.doScrol l("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.createEventObjec t(),e.timeStamp=(new Date).getTime(),e})}),E(t.Window.prototype,{getComputedStyl e: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=func tion(t){var e,a,u,l=this._,c=l.style,s=l.currentStyle,p=l.runtimeStyle;return"op acity"==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="fon tSize"===t?"1em":e,e=c.pixelLeft+"px",c.left=a,u&&(p.left=u)),null==e?e:e+""||"a uto")},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("clientWidt h")},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.create StyleSheet(""),t[0].addRule(e.join(","),"display:block;")}(document.styleSheets, ["header","nav","section","article","aside","footer"])}}(this.window||global);
3 //# sourceMappingURL=ie8.min.js.map
OLDNEW
« no previous file with comments | « static/js/vendor/html5shiv.min.js ('k') | static/js/vendor/respond.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld