[common] refactoring
This commit is contained in:
parent
8bff4f4b35
commit
83218b80a9
|
@ -722,22 +722,6 @@ Common.Utils.getConfigJson = function (url) {
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
Common.Utils.getConfigJson = function (url) {
|
|
||||||
if ( url ) {
|
|
||||||
try {
|
|
||||||
var xhrObj = Common.Utils.createXhr();
|
|
||||||
if ( xhrObj ) {
|
|
||||||
xhrObj.open('GET', url, false);
|
|
||||||
xhrObj.send('');
|
|
||||||
|
|
||||||
return JSON.parse(xhrObj.responseText);
|
|
||||||
}
|
|
||||||
} catch (e) {}
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
Common.Utils.loadConfig = function(url, callback) {
|
Common.Utils.loadConfig = function(url, callback) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue