From 9266cb2f8aae75205195e117fba1c19ed65b4d7d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 11 Sep 2013 11:02:02 +0000 Subject: [PATCH] chore(dom) Loader: mv xhr.send to end --- lib/client/dom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 8223a7e0..20d3eb3f 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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; };