chore(dom) Loader: mv xhr.send to end

This commit is contained in:
coderaiser 2013-09-11 11:02:02 +00:00
parent a2ee8d6181
commit 9266cb2f8a

View file

@ -654,7 +654,6 @@ var CloudCmd, Util, DOM, CloudFunc;
xhr = new XMLHttpRequest();
xhr.open(lType, pParams.url, true);
xhr.send(p.data);
Events.add('readystatechange', function(pEvent) {
if (xhr.readyState === 4 /* Complete */) {
@ -683,7 +682,10 @@ var CloudCmd, Util, DOM, CloudFunc;
}
}
}, xhr);
xhr.send(p.data);
}
return lRet;
};