mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-14 08:28:40 +00:00
Fix json serialization
This commit is contained in:
parent
ad6cb9e3c0
commit
3ba3296e3d
|
|
@ -28,12 +28,11 @@
|
||||||
|
|
||||||
jsOMS.Message.Response.Response.prototype.getByIndex = function (index)
|
jsOMS.Message.Response.Response.prototype.getByIndex = function (index)
|
||||||
{
|
{
|
||||||
//return this.responses[Object.keys(this.responses).sort()[index]];
|
return this.responses[index];
|
||||||
return this.responses;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
jsOMS.Message.Response.Response.prototype.count = function ()
|
jsOMS.Message.Response.Response.prototype.count = function ()
|
||||||
{
|
{
|
||||||
return 1;
|
return this.responses.length;
|
||||||
};
|
};
|
||||||
}(window.jsOMS = window.jsOMS || {}));
|
}(window.jsOMS = window.jsOMS || {}));
|
||||||
|
|
@ -214,7 +214,7 @@
|
||||||
request.setSuccess(function (xhr)
|
request.setSuccess(function (xhr)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
const o = JSON.parse(xhr.response),
|
const o = JSON.parse(xhr.response),
|
||||||
response = new jsOMS.Message.Response.Response(o),
|
response = new jsOMS.Message.Response.Response(o),
|
||||||
responseLength = response.count();
|
responseLength = response.count();
|
||||||
let tempResponse = null,
|
let tempResponse = null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user