From 83e474a40187726078a308da157adecd4cdcd890 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Mon, 20 Apr 2015 16:22:32 +0200 Subject: [PATCH] [Utils] Empty listener object is valid. Change-Id: Ib392793a8a5e40bc5b9063b15754409490d72fb5 --- src/utils/utils_api.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js index 409d91b9..4ce69613 100644 --- a/src/utils/utils_api.js +++ b/src/utils/utils_api.js @@ -606,12 +606,6 @@ Validator.prototype.validateArgs = function(a, d) { 'Argument "' + name + '" cannot be null.'); } } else { - if (!_type.isFunction(val)) { - if (_type.isEmptyObject(val)) { - throw new WebAPIException(WebAPIException.TYPE_MISMATCH_ERR, - 'Argument "' + name + '" shouldn\'t be an empty object.'); - } - } if (!_type.isObject(val)) { throw new WebAPIException(WebAPIException.TYPE_MISMATCH_ERR, 'Argument "' + name + '" should be an object.'); -- 2.34.1