[Notification] Fix checking paths
authorPawel Kaczmarek <p.kaczmarek3@samsung.com>
Mon, 23 Mar 2015 12:21:56 +0000 (13:21 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Mon, 23 Mar 2015 14:03:15 +0000 (23:03 +0900)
[Verification]
Related TCT should pass

Change-Id: I7e9fcdc8d2cc72031f608ad1a0f19ffdc8be2ef4
Signed-off-by: Pawel Kaczmarek <p.kaczmarek3@samsung.com>
src/notification/notification_api.js

index 63a01209be2f85b8eae4164bf1f4ad8007f574d6..3e3b53cda4f0fd29ce4c1bac8199ca61cd8fcbc7 100644 (file)
@@ -208,7 +208,7 @@ function NotificationInitDict(data) {
       return false;
     }
     for (var i = 0; i < v.length; ++i) {
-      if (!type_.isString(v[i]) && !(/\s/.test(v))) {
+      if (!type_.isString(v[i])) {
         return false;
       }
     }
@@ -302,7 +302,7 @@ function NotificationInitDict(data) {
         return _subIconPath;
       },
       set: function(v) {
-        _subIconPath = type_.isString(v) && !(/\s/.test(v))  ? v : _subIconPath;
+        _subIconPath = type_.isString(v) ? v : _subIconPath;
       },
       enumerable: true
     },
@@ -347,7 +347,7 @@ function NotificationInitDict(data) {
         return _backgroundImagePath;
       },
       set: function(v) {
-        _backgroundImagePath = type_.isString(v) && !(/\s/.test(v))  ? v : _backgroundImagePath;
+        _backgroundImagePath = type_.isString(v) ? v : _backgroundImagePath;
       },
       enumerable: true
     },