From: Pawel Kaczmarczyk Date: Wed, 27 Sep 2017 08:33:04 +0000 (+0200) Subject: [Notification] Fix for getNotification and UserNotification constructor X-Git-Tag: accepted/tizen/4.0/unified/20170929.075732~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5668458211140370a3be0921bfa8518d9e659e08;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Notification] Fix for getNotification and UserNotification constructor [Bug] progressValue wasn't stored propperly, getNotification was requesting for StatusNotification object [Verification] Tested in Chrome console Change-Id: I12b221988bf6d984cd79a4ab28a1fe09bb0bcbe7 Signed-off-by: Pawel Kaczmarczyk --- diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js index b4cd723..1b8bc52 100644 --- a/src/notification/notification_api.js +++ b/src/notification/notification_api.js @@ -206,7 +206,7 @@ NotificationManager.prototype.getNotification = function(id) { var data = { //add marker for UserNotification implementation - newImpl: (args.notification instanceof tizen.UserNotification), + newImpl: true, id: args.id }; @@ -781,6 +781,7 @@ function TextContentsInitDict(data) { }); if (data instanceof _global.Object) { + this['progressType'] = data['progressType']; for (var prop in data) { if (this.hasOwnProperty(prop)) { this[prop] = data[prop];