You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
965 B

/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('yql-jsonp', function (Y, NAME) {
/**
* Plugin for YQL to use JSONP to make YQL requests. This is the default method,
* when loaded in nodejs or winjs this will not load. The new module is needed
* to make sure that JSONP is not loaded in the environments that it is not needed.
* @module yql
* @submodule yql-jsonp
*/
//Over writes Y.YQLRequest._send to use IO instead of JSONP
Y.YQLRequest.prototype._send = function (url, o) {
if (o.allowCache !== false) {
o.allowCache = true;
}
if (!this._jsonp) {
this._jsonp = Y.jsonp(url, o);
} else {
this._jsonp.url = url;
if (o.on && o.on.success) {
this._jsonp._config.on.success = o.on.success;
}
this._jsonp.send();
}
};
}, '3.17.2', {"requires": ["yql", "jsonp", "jsonp-url"]});