Lines Matching defs:req

552             i, len, req, url;
566 req = {attributes: {}};
573 req.url = url;
577 Y.mix(req, url, false, null, 0, true);
584 Y.mix(req, options, false, null, 0, true);
589 if (!req.type) {
591 req.type = 'css';
597 req.type = 'js';
603 Y.mix(req, req.type === 'js' ? this.jsOptions : this.cssOptions,
607 req.attributes.id || (req.attributes.id = Y.guid());
610 if (req.win) {
612 req.doc = req.win.document;
614 req.win = req.doc.defaultView || req.doc.parentWindow;
617 if (req.charset) {
619 req.attributes.charset = req.charset;
622 requests.push(req);
865 i, len, queue, req;
888 req = self.requests[i];
890 if (req.async || req.type === 'css') {
892 self._insert(req);
894 queue.push(req);
977 _getEventData: function (req) {
978 if (req) {
983 request: req,
984 url : req.url,
985 win : req.win
992 _getInsertBefore: function (req) {
993 var doc = req.doc,
994 el = req.insertBefore,
1031 _insert: function (req) {
1033 insertBefore = this._getInsertBefore(req),
1034 isScript = req.type === 'js',
1035 node = req.node,
1049 node = req.node = this._createNode(nodeType, req.attributes,
1050 req.doc);
1054 self._progress('Failed to load ' + req.url, req);
1062 self._progress(null, req);
1068 node.setAttribute('src', req.url);
1070 if (req.async) {
1088 this._pending = req;
1100 node.innerHTML = (req.attributes.charset ?
1101 '@charset "' + req.attributes.charset + '";' : '') +
1102 '@import "' + req.url + '";';
1104 node.setAttribute('href', req.url);
1119 this._poll(req);
1129 cssTimeout = setTimeout(onError, req.timeout || 3000);
1159 i, hasRules, j, nodeHref, req, sheets;
1179 req = pendingCSS[i];
1183 sheets = req.doc.styleSheets;
1185 nodeHref = req.node.href;
1191 self._progress(null, req);
1206 hasRules = !!req.node.sheet.cssRules;
1211 self._progress(null, req);
1225 _progress: function (err, req) {
1229 req.error = err;
1233 request: req
1239 req.node._yuiget_finished = req.finished = true;
1243 this._getEventData(req));
1246 if (req.autopurge) {
1251 Get._purgeNodes.push(req.node);
1254 if (this._pending === req) {