From 58198636ed2480a534c932f6afdd18eeea06d41e Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 30 Oct 2015 10:32:01 -0700 Subject: [PATCH] Fixed jslint complaints --- platform/commonUI/notification/src/NotificationService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/commonUI/notification/src/NotificationService.js b/platform/commonUI/notification/src/NotificationService.js index 3066b653b1..568d31beb5 100644 --- a/platform/commonUI/notification/src/NotificationService.js +++ b/platform/commonUI/notification/src/NotificationService.js @@ -223,7 +223,7 @@ define( * functions to dismiss or minimize */ NotificationService.prototype.info = function (message) { - var notificationModel = typeof message === "string" ? {title: message} : message + var notificationModel = typeof message === "string" ? {title: message} : message; notificationModel.autoDismiss = notificationModel.autoDismiss || true; notificationModel.severity = "info"; return this.notify(notificationModel); @@ -240,7 +240,7 @@ define( * functions to dismiss or minimize */ NotificationService.prototype.alert = function (message) { - var notificationModel = typeof message === "string" ? {title: message} : message + var notificationModel = typeof message === "string" ? {title: message} : message; notificationModel.severity = "alert"; return this.notify(notificationModel); }; @@ -256,7 +256,7 @@ define( * functions to dismiss or minimize */ NotificationService.prototype.error = function (message) { - var notificationModel = typeof message === "string" ? {title: message} : message + var notificationModel = typeof message === "string" ? {title: message} : message; notificationModel.severity = "error"; return this.notify(notificationModel); };