Fix json serialization

This commit is contained in:
Dennis Eichhorn 2017-01-22 21:06:37 +01:00
parent ad6cb9e3c0
commit 3ba3296e3d
2 changed files with 3 additions and 4 deletions

View File

@ -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 || {}));