src/cm/media/js/lib/yui/yui3.0.0/examples/dd/assets/yql-min.js
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 0 40c8f766c9b8
permissions -rw-r--r--
add link to "privacy policy" in the header test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
YUI.add("yql",function(c){if(!YUI.yql){YUI.yql={}}var b="http://query.yahooapis.com/v1/public/yql?",a=function(e,f,d){a.superclass.constructor.apply(this);this._query(e,f,d)};c.extend(a,c.Event.Target,{_receiver:function(d){if(d.query){this.fire("query",d.query)}if(d.error){this.fire("error",d.error)}if(this._cb){this._cb(d)}return this},_query:function(h,i,g){var f=c.stamp({}),d="",e;f=f.replace(/-/g,"_");this._cb=i;YUI.yql[f]=c.bind(this._receiver,this);if(!g){g={}}g.q=h;g.format="json";g.callback="YUI.yql."+f;if(!g.env){g.env="http://datatables.org/alltables.env"}c.each(g,function(l,j){d+=j+"="+encodeURIComponent(l)+"&"});e=b+d;c.Get.script(e,{autopurge:true});return this}});c.yql=a},"1.0",{requires:["get","event-custom"],skinnable:false});