Sha256: 0cbc870cdcdf36d5b2195bc495cfd560ed244da89a9325d836e132de0588a28d

Contents?: true

Size: 1.64 KB

Versions: 5

Compression:

Stored size: 1.64 KB

Contents

// jquery.jsonp 2.1.0 (c)2010 Julian Aubourg | MIT License
// http://code.google.com/p/jquery-jsonp/
(function(e,b){function d(){}function s(B){c=[B]}function m(B){f.insertBefore(B,f.firstChild)}function l(D,B,C){D&&D.apply(B,C)}function k(B){return/\?/.test(B)?"&":"?"}var n="async",q="",z="error",r="_jqjsp",v="on",o=v+"click",p=v+z,a=v+"load",i=v+"readystatechange",y="removeChild",g="<script/>",u="success",x="timeout",w=e.browser,f=e("head")[0]||document.documentElement,t={},j=0,c,h={callback:r,url:location.href};function A(B){B=e.extend({},h,B);var P=B.complete,D=B.dataFilter,L=B.callbackParameter,Q=B.callback,F=B.cache,H=B.pageCache,C=B.url,K=B.data,O=B.timeout,N,J=B.beforeSend,I=0,G=d;B.abort=function(){!I++&&G()};if(J&&(J(B,B)===false||I)){return B}C=C||q;K=K?((typeof K)=="string"?K:e.param(K,B.traditional)):q;C+=K?(k(C)+K):q;L&&(C+=k(C)+escape(L)+"=?");!F&&!H&&(C+=k(C)+"_"+(new Date()).getTime()+"=");C=C.replace(/=\?(&|$)/,"="+Q+"$1");function M(R){!I++&&b(function(){G();H&&(t[C]={s:[R]});D&&(R=D.apply(B,[R]));l(B.success,B,[R,u]);l(P,B,[B,u])},0)}function E(R){!I++&&b(function(){G();H&&R!=x&&(t[C]=R);l(B.error,B,[B,R]);l(P,B,[B,R])},0)}H&&(N=t[C])?(N.s?M(N.s[0]):E(N)):b(function(S,R,T){if(!I){T=O>0&&b(function(){E(x)},O);G=function(){T&&clearTimeout(T);S[i]=S[o]=S[a]=S[p]=null;f[y](S);R&&f[y](R)};window[Q]=s;S=e(g)[0];S.id=r+j++;function U(V){(S[o]||d)();V=c;c=undefined;V?M(V[0]):E(z)}if(w.msie){S.event=o;S.htmlFor=S.id;S[i]=function(){S.readyState=="loaded"&&U()}}else{S[p]=S[a]=U;w.opera?((R=e(g)[0]).text="jQuery('#"+S.id+"')[0]."+p+"()"):S[n]=n}S.src=C;m(S);R&&m(R)}},0);return B}A.setup=function(B){e.extend(h,B)};e.jsonp=A})(jQuery,setTimeout);

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pcapr-local-0.2.0 lib/pcapr_local/www/static/script/jquery/jquery.jsonp.min.js
pcapr-local-0.1.13 lib/pcapr_local/www/static/script/jquery/jquery.jsonp.min.js
pcapr-local-0.1.12 lib/pcapr_local/www/static/script/jquery/jquery.jsonp.min.js
pcapr-local-0.1.11 lib/pcapr_local/www/static/script/jquery/jquery.jsonp.min.js
pcapr-local-0.1.10 lib/pcapr_local/www/static/script/jquery/jquery.jsonp.min.js