Fixed jslint complaints

This commit is contained in:
Henry 2015-10-30 10:32:01 -07:00
parent 86bf6c6dff
commit 58198636ed

View File

@ -223,7 +223,7 @@ define(
* functions to dismiss or minimize * functions to dismiss or minimize
*/ */
NotificationService.prototype.info = function (message) { 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.autoDismiss = notificationModel.autoDismiss || true;
notificationModel.severity = "info"; notificationModel.severity = "info";
return this.notify(notificationModel); return this.notify(notificationModel);
@ -240,7 +240,7 @@ define(
* functions to dismiss or minimize * functions to dismiss or minimize
*/ */
NotificationService.prototype.alert = function (message) { NotificationService.prototype.alert = function (message) {
var notificationModel = typeof message === "string" ? {title: message} : message var notificationModel = typeof message === "string" ? {title: message} : message;
notificationModel.severity = "alert"; notificationModel.severity = "alert";
return this.notify(notificationModel); return this.notify(notificationModel);
}; };
@ -256,7 +256,7 @@ define(
* functions to dismiss or minimize * functions to dismiss or minimize
*/ */
NotificationService.prototype.error = function (message) { NotificationService.prototype.error = function (message) {
var notificationModel = typeof message === "string" ? {title: message} : message var notificationModel = typeof message === "string" ? {title: message} : message;
notificationModel.severity = "error"; notificationModel.severity = "error";
return this.notify(notificationModel); return this.notify(notificationModel);
}; };