[Utils] Empty listener object is valid.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 20 Apr 2015 14:22:32 +0000 (16:22 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 21 Apr 2015 08:41:18 +0000 (17:41 +0900)
Change-Id: Ib392793a8a5e40bc5b9063b15754409490d72fb5

src/utils/utils_api.js

index 409d91b92f55d967c63993b959b5972b412d5a41..4ce6961385d0f57ceeee0376b898b96731f7100a 100644 (file)
@@ -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.');