diff --git a/Message/Response/ResponseManager.js b/Message/Response/ResponseManager.js index 8e8845d..51c2ff8 100644 --- a/Message/Response/ResponseManager.js +++ b/Message/Response/ResponseManager.js @@ -67,7 +67,7 @@ */ jsOMS.Message.Response.ResponseManager.prototype.run = function (key, data, request) { - if (typeof request !== 'undefined' && typeof this.messages[key][request] !== 'undefined') { + if (typeof request !== 'undefined' && typeof this.messages[key] !== 'undefined' && typeof this.messages[key][request] !== 'undefined') { this.messages[key][request](data); } else if (typeof this.messages[key] !== 'undefined') { this.messages[key].any(data);