first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,34 @@
YUI.add('yql-winjs', function (Y, NAME) {
/**
* WinJS plugin for YQL to use native XHR to make requests instead of JSONP.
* Not required by the user, it's conditionally loaded and should "just work".
* @module yql
* @submodule yql-winjs
*/
//Over writes Y.YQLRequest._send to use IO instead of JSONP
Y.YQLRequest.prototype._send = function (url, o) {
var req = new XMLHttpRequest(),
timer;
req.open('GET', url, true);
req.onreadystatechange = function () {
if (req.readyState === 4) { //Complete
//No status code check here, since the YQL service will return JSON
clearTimeout(timer);
//No need to "call" this, YQL handles the context
o.on.success(JSON.parse(req.responseText));
}
};
req.send();
//Simple timer to catch no connections
timer = setTimeout(function() {
req.abort();
o.on.timeout('script timeout');
}, o.timeout || 30000);
};
}, '3.18.1', {"requires": ["yql"]});
+1
View File
@@ -0,0 +1 @@
YUI.add("yql-winjs",function(e,t){e.YQLRequest.prototype._send=function(e,t){var n=new XMLHttpRequest,r;n.open("GET",e,!0),n.onreadystatechange=function(){n.readyState===4&&(clearTimeout(r),t.on.success(JSON.parse(n.responseText)))},n.send(),r=setTimeout(function(){n.abort(),t.on.timeout("script timeout")},t.timeout||3e4)}},"3.18.1",{requires:["yql"]});
+34
View File
@@ -0,0 +1,34 @@
YUI.add('yql-winjs', function (Y, NAME) {
/**
* WinJS plugin for YQL to use native XHR to make requests instead of JSONP.
* Not required by the user, it's conditionally loaded and should "just work".
* @module yql
* @submodule yql-winjs
*/
//Over writes Y.YQLRequest._send to use IO instead of JSONP
Y.YQLRequest.prototype._send = function (url, o) {
var req = new XMLHttpRequest(),
timer;
req.open('GET', url, true);
req.onreadystatechange = function () {
if (req.readyState === 4) { //Complete
//No status code check here, since the YQL service will return JSON
clearTimeout(timer);
//No need to "call" this, YQL handles the context
o.on.success(JSON.parse(req.responseText));
}
};
req.send();
//Simple timer to catch no connections
timer = setTimeout(function() {
req.abort();
o.on.timeout('script timeout');
}, o.timeout || 30000);
};
}, '3.18.1', {"requires": ["yql"]});