From: Pawel Kaczmarek
Date: Mon, 23 Mar 2015 12:21:56 +0000 (+0100)
Subject: [Notification] Fix checking paths
X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~259
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=372c2d09f66f9c0c7235aab4be6d67e1fbb42896;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Notification] Fix checking paths
[Verification]
Related TCT should pass
Change-Id: I7e9fcdc8d2cc72031f608ad1a0f19ffdc8be2ef4
Signed-off-by: Pawel Kaczmarek
---
diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js
index 63a01209..3e3b53cd 100644
--- a/src/notification/notification_api.js
+++ b/src/notification/notification_api.js
@@ -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
},