Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/notificationHelper.js

Issue 29317071: Issue 2368 - Cleanup code adapted with the previous dependency update (Closed)
Patch Set: Created June 18, 2015, 12:30 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/notificationHelper.js
===================================================================
--- a/lib/notificationHelper.js
+++ b/lib/notificationHelper.js
@@ -131,7 +131,7 @@
function showNotification(notification)
{
- if (!notification || activeNotification && activeNotification.id == notification.id)
+ if (activeNotification && activeNotification.id == notification.id)
return;
activeNotification = notification;
@@ -239,7 +239,4 @@
return activeNotification;
};
-NotificationStorage.addShowListener(function(notification)
-{
- showNotification(notification);
-});
+NotificationStorage.addShowListener(showNotification);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld