Notifications: Note that the ID is unnecessary and deprecated
authorEd Sanders <esanders@wikimedia.org>
Tue, 28 Aug 2018 14:50:14 +0000 (15:50 +0100)
committerEd Sanders <esanders@wikimedia.org>
Tue, 28 Aug 2018 14:50:14 +0000 (15:50 +0100)
Change-Id: I30a3a2bd0dce6391dc075807ffbfdf6fef49d88d

resources/src/mediawiki.notification/notification.js

index aa86a4b..a163a3d 100644 (file)
@@ -2,7 +2,7 @@
        'use strict';
 
        var notification,
-               // The #mw-notification-area div that all notifications are contained inside.
+               // The .mw-notification-area div that all notifications are contained inside.
                $area,
                // Number of open notification boxes at any time
                openNotificationCount = 0,
 
                // Write to the DOM:
                // Prepend the notification area to the content area and save its object.
+               // The ID attribute here is deprecated.
                $area = $( '<div id="mw-notification-area" class="mw-notification-area mw-notification-area-layout"></div>' )
                        // Pause auto-hide timers when the mouse is in the notification area.
                        .on( {