Skip to content
Browse files

a.js: hotfix

  • Loading branch information...
1 parent 4146ac2 commit cd4e99cf16cd4ddc23f7db019c1b6dc4db5746f0 @termi committed Jul 22, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 __COMPILE/a.js
  2. +2 −2 __SRC/a.js
View
4 __COMPILE/a.js
@@ -1,7 +1,7 @@
/* MIT License (c) copyright Egor Halimonenko (termi1uc1@gmail.com) */
;(function(){"use strict";
function g(a){throw a;}var j=void 0,k=!0,l=null,m=!1,n=window;function p(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;for(e in d)Object.prototype.hasOwnProperty.call(d,e)&&!Object.prototype.hasOwnProperty.call(a,e)&&(a[e]=d[e])}return a}function aa(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){}}function ba(a){try{return a.sentinel2=0,0===Object.getOwnPropertyDescriptor(a,"sentinel2").value}catch(b){}}
-function ca(a){var b=a.cloneNode;delete a.cloneNode;a.cloneNode=function(a){a===j&&(a=k);return b.call(this,a)}}function da(){nodeListProto&&nodeListProto!==Array.prototype&&ea.forEach(function(a){nodeListProto[a]||(nodeListProto[a]=Array.prototype[a])})}
+function ca(a){var b=a.cloneNode;delete a.cloneNode;a.cloneNode=function(a){a===j&&(a=k);return b.call(this,a)}}function da(a){(a=a.__proto__||a.constructor.prototype)&&a!==Array.prototype&&ea.forEach(function(b){a[b]||(a[b]=Array.prototype[b])})}
var fa,q=Object.prototype,ga=Function.prototype.apply,r=n.Element&&n.Element.prototype||{},s=Array.prototype.slice,t=String.prototype.split,u,ha,v,ia=Array.prototype.splice,w,ea="every filter forEach indexOf join lastIndexOf map reduce reduceRight reverse slice some toString".split(" "),x=Function.prototype.bind||function(a,b){var c=this,d=s.call(arguments,1);return function(){return ga.call(c,a,d.concat(s.call(arguments)))}},y=x.call(Function.prototype.call,q.hasOwnProperty);
function z(a,b,c){return ga.call(a,b,s.call(arguments,2))}var ja="a"!=Object("a")[0]||!(0 in Object("a"));function A(a,b){a==l&&!b&&g(new TypeError);return ja&&"string"==typeof a&&a?t.call(a,""):Object(a)}var ka=q.toString;function la(a){var b=Object.create(DOMException.prototype);b.code=DOMException[a];b.message=a+": DOM Exception "+b.code;g(b)}function ma(){return m}function B(a){return a}
function na(a,b){for(var c=0,d=a.length;c<d;c++){var e=a[c],f=b(e);if(f||e.childNodes&&0<e.childNodes.length&&(f=na(e.childNodes,b)))return f}}
@@ -43,7 +43,7 @@ h[1].toUpperCase())&&h[2]){e=-1;i=h[2].slice(1).split(".");for(h=" "+c.className
"labels"in C("input")||Object.defineProperty(r,"labels",{enumerable:k,get:function(){if(u.call(" INPUT BUTTON KEYGEN METER OUTPUT PROGRESS TEXTAREA SELECT "," "+this.nodeName.toUpperCase()+" ")){for(var a=this,b=this.id?v(document.querySelectorAll("label[for='"+this.id+"']")):[],c=b.length-1;(a=a.parentNode)&&(!a.e||a.e===this);)if(a.nodeName.toUpperCase()==="LABEL"){for(;b[c]&&b[c].compareDocumentPosition(a)&2;)c--;ia.call(b,c+1,0,a)}return b}}});
"control"in C("label")||Object.defineProperty(n.HTMLLabelElement&&n.HTMLLabelElement.prototype||r,"control",{enumerable:k,get:function(){return this.nodeName.toUpperCase()!=="LABEL"?j:this.hasAttribute("for")?document.getElementById(this.htmlFor):na(this.childNodes,function(a){if(u(" INPUT BUTTON KEYGEN METER OUTPUT PROGRESS TEXTAREA SELECT "," "+a.nodeName.toUpperCase()+" "))return a})||l}});
"reversed"in C("ol")||(Ha=function(a){a.removeAttribute("value")},Ia=function(a){var b=a.getAttribute("reversed"),c=a._;if(!(b!==l&&!c&&!c.reversed)){c||(c=a._={reversed:k});var d=a.children,e=a.getAttribute("start");if(e!==l){e=Number(e);isNaN(e)&&(e=l)}if(b){if(e===l)e=d.length;L(d,function(a){a.value=e--})}else{c.reversed=m;d[0]&&(d[0].value=e||0);L(d,Ha)}}},Object.defineProperty(n.HTMLOListElement&&n.HTMLOListElement.prototype||r,"reversed",{get:function(){return!this.tagName||this.tagName.toUpperCase()!==
-"OL"?j:this.getAttribute("reversed")!==l},set:function(a){if(this.tagName&&this.tagName.toUpperCase()==="OL"){this[(a?"remove":Ia(this),"set")+"Attribute"]("reversed","");return a}}}),Na=function(){document.removeEventListener("DOMContentLoaded",Na,m);L(document.getElementsByTagName("ol"),Ia)},document.addEventListener("DOMContentLoaded",Na,m));document.getElementsByClassName&&da();document.querySelectorAll&&da(document.querySelectorAll("#z"));
+"OL"?j:this.getAttribute("reversed")!==l},set:function(a){if(this.tagName&&this.tagName.toUpperCase()==="OL"){this[(a?"remove":Ia(this),"set")+"Attribute"]("reversed","");return a}}}),Na=function(){document.removeEventListener("DOMContentLoaded",Na,m);L(document.getElementsByTagName("ol"),Ia)},document.addEventListener("DOMContentLoaded",Na,m));document.getElementsByClassName&&da(document.getElementsByClassName(""));document.querySelectorAll&&da(document.querySelectorAll("#z"));
Oa=n.XHR=function(a,b){var a=Object.extend({},Oa.f,a),c=new XMLHttpRequest;c.onreadystatechange=function(){this.readyState===4?c.status!==200&&a.error?a.error.call(this,this.response||this.responseText||this.responseXML):b.call(this,l,this.response||this.responseText||this.responseXML):a.proccess&&a.proccess.call(this)};if(!a.error)c.onerror=function(a){b.call(this,a)};try{c.open(a.method,a.uri);a.headers&&Object.keys(a.headers).forEach(function(b){c.setRequestHeader(b,a.headers[b])});c.send(a.data)}catch(d){(a.error||
b).call(this,d)}return c};Oa.f={"X-Requested-With":"HTTPRequest","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"};
if(!R.prototype.toISOString||u.call((new R(-621987552E5)).toISOString(),"-000001")||"1969-12-31T23:59:59.999Z"!==(new R(-1)).toISOString())R.prototype.toISOString=function(){var a,b,c,d;isFinite(this)||g(new RangeError("Date.prototype.toISOString called on non-finite value."));d=this.getUTCFullYear();a=this.getUTCMonth();d=d+~~(a/12);a=[(a%12+12)%12+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()];d=(d<0?"-":d>9999?"+":"")+("00000"+Math.abs(d)).slice(0<=d&&d<=9999?
View
4 __SRC/a.js
@@ -2416,9 +2416,9 @@ function extendNodeListPrototype(nodeList_proto) {
//in old FF nodeList_proto.__proto__ != nodeList_proto.constructor.prototype
nodeList_proto = nodeList_proto.__proto__ || nodeList_proto.constructor.prototype;
- if(nodeListProto && nodeListProto !== Array.prototype) {
+ if(nodeList_proto && nodeList_proto !== Array.prototype) {
nodeList_methods_fromArray.forEach(function(key) {
- if(!nodeListProto[key])nodeListProto[key] = Array.prototype[key];
+ if(!nodeList_proto[key])nodeList_proto[key] = Array.prototype[key];
})
}
}

0 comments on commit cd4e99c

Please sign in to comment.
Something went wrong with that request. Please try again.