[Utils] Fixed isObject() function.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 20 Apr 2015 14:26:59 +0000 (16:26 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Tue, 21 Apr 2015 08:41:40 +0000 (17:41 +0900)
Previous implementation returned true for function.

Change-Id: I09cf359efaccefd5eb93f2ad0141a2dad373417a

src/utils/utils_api.js

index 4ce6961385d0f57ceeee0376b898b96731f7100a..1e906cc301440fd7ba63bfc1ba35f4f8d7479fd7 100644 (file)
@@ -155,7 +155,7 @@ Type.prototype.isBoolean = function(obj) {
 };
 
 Type.prototype.isObject = function(obj) {
-  return obj instanceof Object;
+  return (null !== obj && typeof obj === 'object' && !this.isArray(obj));
 };
 
 Type.prototype.isArray = function(obj) {