1/*! jQuery4 äºæshim (æ§ãã©ã°ã¤ã³ç¨) 2 jQuery 4 ã§åé¤/廿¢ãããæ§APIã復å ããv4å ¬å¼çã®ç¡ãæ§ãã©ã°ã¤ã³ãç¡æ¹å¤ã§åä½ãããèãäºæå±¤ã 3 native Function.prototype.bind ã«ã¯å¹²æ¸ããªããåªçï¼å¤éèªè¾¼ãã¦ãå®å ¨ï¼ã */ 4(function(window){ 5 var $=window.jQuery; if(!$) return; 6 // ---- static utils ---- 7 if(!$.isFunction) $.isFunction=function(o){return typeof o==="function";}; 8 if(!$.isArray) $.isArray=Array.isArray; 9 if(!$.isWindow) $.isWindow=function(o){return o!=null&&o===o.window;}; 10 if(!$.trim) $.trim=function(s){return s==null?"":String(s).replace(/^[\s\xA0]+|[\s\xA0]+$/g,"");}; 11 if(!$.type) $.type=function(o){ 12 if(o==null) return o+""; 13 var t=typeof o; 14 if(t==="object"||t==="function"){ 15 var s=Object.prototype.toString.call(o); 16 return ({"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Number]":"number","[object RegExp]":"regexp","[object String]":"string","[object Function]":"function"})[s]||"object"; 17 } 18 return t; 19 }; 20 if(!$.isNumeric) $.isNumeric=function(o){var t=typeof o;return (t==="number"||t==="string")&&!isNaN(o-parseFloat(o));}; 21 if(!$.now) $.now=Date.now; 22 if(!$.parseJSON) $.parseJSON=function(s){return JSON.parse(s);}; 23 if(!$.cssNumber) $.cssNumber={animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true}; 24 if(!$.camelCase) $.camelCase=function(s){return s.replace(/-([a-z])/g,function(_,c){return c.toUpperCase();});}; 25 if(!$.proxy) $.proxy=function(fn,ctx){ if(typeof ctx==="string"){var tmp=fn[ctx];ctx=fn;fn=tmp;} var a=Array.prototype.slice.call(arguments,2); return function(){return fn.apply(ctx,a.concat(Array.prototype.slice.call(arguments)));}; }; 26 if(!$.browser){ // é常ã«å¤ããã©ã°ã¤ã³(jquery.toolsç)åã 27 var ua=navigator.userAgent.toLowerCase(); var m=/(chrome)|(webkit)|(opera)|(msie)|(trident)|(mozilla)/.exec(ua)||[]; 28 $.browser={}; 29 } 30 // ---- fn methods ---- 31 if($.fn){ 32 if(!$.fn.bind) $.fn.bind=function(){return this.on.apply(this,arguments);}; 33 if(!$.fn.unbind) $.fn.unbind=function(){return this.off.apply(this,arguments);}; 34 if(!$.fn.delegate) $.fn.delegate=function(sel,ev,data,fn){return this.on(ev,sel,data,fn);}; 35 if(!$.fn.undelegate) $.fn.undelegate=function(sel,ev,fn){return arguments.length===0?this.off():this.off(ev,sel||"**",fn);}; 36 if(!$.fn.size) $.fn.size=function(){return this.length;}; 37 if(!$.fn.andSelf&&$.fn.addBack) $.fn.andSelf=$.fn.addBack; 38 if(!$.fn.hover) {/* hoverã¯v4ã«åå¨ */} 39 // .load(fn)/.unload/.error ã¤ãã³ãã·ã§ã¼ãã«ããï¼v4ã§åé¤ãv4ã®$.fn.loadã¯AJAXå°ç¨ã®ãã颿°æ¸¡ãã§indexOfã¨ã©ã¼ã«ãªãï¼ 40 if(!$.fn.load||!$.fn.load._compat){ var _aload=$.fn.load; $.fn.load=function(u){ if(typeof u==="string") return _aload?_aload.apply(this,arguments):this; return this.on("load",u); }; $.fn.load._compat=true; } 41 if(!$.fn.unload) $.fn.unload=function(fn){return this.on("unload",fn);}; 42 if(!$.fn.error) $.fn.error=function(fn){return this.on("error",fn);}; 43 // .live()/.die()ï¼v4ã§åé¤ãæ§ãã©ã°ã¤ã³ã®ã¤ãã³ãå§è²ç¨ï¼ 44 // jQueryã¯3.0ã§ .selector ã廿¢ãããããæååã»ã¬ã¯ã¿ãèã復å ä¿æã document ã¸å§è²ããã 45 if(!$.fn.live){ 46 var _init=$.fn.init; 47 if(_init && !_init._cbSelCap){ 48 var NewInit=function(s,c,r){ var o=new _init(s,c,r); if(typeof s==="string"){ try{o.selector=s;}catch(e){} } return o; }; 49 NewInit._cbSelCap=true; NewInit.prototype=$.fn; $.fn.init=NewInit; 50 } 51 $.fn.live=function(types,data,fn){ var sel=this.selector; if(sel){$(document).on(types,sel,data,fn);} else {this.on(types,data,fn);} return this; }; 52 $.fn.die =function(types,fn){ var sel=this.selector; if(sel){$(document).off(types,sel,fn);} else {this.off(types,fn);} return this; }; 53 } 54 } 55 // $.support æ§ãã©ã°ï¼æ¥µå¤ãã©ã°ã¤ã³ã®IEåå²å¤å®ç¨ãv4ã§ã¯æªå®ç¾© â modernæ±ãã«åºå®ï¼
56 if($.support){ 57 if($.support.noCloneEvent===undefined) $.support.noCloneEvent=true; 58 if($.support.opacity===undefined) $.support.opacity=true; 59 if($.support.style===undefined) $.support.style=true; 60 } 61})(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.