Moved some more vars

This commit is contained in:
Henry 2015-10-08 13:17:12 -07:00
parent fc8630dbc6
commit df590107cb
2 changed files with 11 additions and 10 deletions

View File

@ -199,7 +199,7 @@ define(
notification = this.notifications[i]; notification = this.notifications[i];
if (!notification.minimized if (!notification.minimized
&& notification!= this.activeNotification) { && notification!== this.activeNotification) {
return notification; return notification;
} }

View File

@ -168,15 +168,16 @@ define(
}); });
it("auto-minimizes errors when a number of them arrive in" + it("auto-minimizes errors when a number of them arrive in" +
" short succession ", function() { " short succession ", function() {
var activeNotification; var activeNotification,
var error2 = { error2 = {
title: "Second Mock Error Notification", title: "Second Mock Error Notification",
severity: MessageSeverity.ERROR severity: MessageSeverity.ERROR
}; };
var error3 = { error3 = {
title: "Third Mock Error Notification", title: "Third Mock Error Notification",
severity: MessageSeverity.ERROR severity: MessageSeverity.ERROR
}; };
//First pre-load with a success message //First pre-load with a success message
notificationService.notify(errorModel); notificationService.notify(errorModel);
//Then notify of a third error //Then notify of a third error