jsonp-url-min.js revision 220fb3dafc1b893feeef6a8f8ccbf7cb3626aa8c
YUI.add("jsonp-url",function(E){var A=E.Lang.isObject,D=E.Lang.isFunction,F=".",B="@";function C(H,K,G){var I=K.length-1,J=K[0],L;if(J.charAt(0)===B){J=G[J];}for(;I>0;--I){L=K[I];if(L.charAt(0)===B){L=G[L];}H=H[L];if(!A(H)){return null;}}return(A(H)&&D(H[J]))?E.bind(J,H):null;}E.JSONPRequest.prototype._defaultCallback=function(I){var H=I.match(E.JSONPRequest._pattern),G={},J=0,K,L;if(H){K=H[1].replace(/\[(?:(['"])([^\]\1]+)\1|(\d+))\]/g,function(P,N,O,M){var R=(RegExp.rightContext||".").charAt(0),Q=B+(++J);G[Q]=O||M;if(R!==F&&R!=="["){Q+=F;}return F+Q;}).split(/\./).reverse();L=C(E.config.win,K,G);if(!L){L=C(E,K,G);if(!L&&K.length>1){K.pop();L=C(E,K,G);}}}return L||function(){};};},"@VERSION@",{requires:["jsonp-base"]});