1
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
2
YUI.add('yql-jsonp', function (Y, NAME) {
5
* Plugin for YQL to use JSONP to make YQL requests. This is the default method,
6
* when loaded in nodejs or winjs this will not load. The new module is needed
7
* to make sure that JSONP is not loaded in the environments that it is not needed.
12
//Over writes Y.YQLRequest._send to use IO instead of JSONP
13
Y.YQLRequest.prototype._send = function (url, o) {
14
if (o.allowCache !== false) {
18
this._jsonp = Y.jsonp(url, o);
20
this._jsonp.url = url;
21
if (o.on && o.on.success) {
22
this._jsonp._config.on.success = o.on.success;
30
}, '3.9.1', {"requires": ["jsonp", "jsonp-url"]});