summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Echo/modules/mobile/NotificationBadge.js')
-rw-r--r--Echo/modules/mobile/NotificationBadge.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/Echo/modules/mobile/NotificationBadge.js b/Echo/modules/mobile/NotificationBadge.js
index fdffb010..0a55196d 100644
--- a/Echo/modules/mobile/NotificationBadge.js
+++ b/Echo/modules/mobile/NotificationBadge.js
@@ -36,8 +36,9 @@ function NotificationBadge( options ) {
$notificationAnchor = $el.find( 'a' );
options.title = $notificationAnchor.attr( 'title' );
options.url = $notificationAnchor.attr( 'href' );
- count = Number( $el.find( 'span' ).data( 'notification-count' ) );
+ count = Number( $el.find( '[data-notification-count]' ).data( 'notification-count' ) );
}
+
View.call( this,
$.extend( {
notificationIconClass: notificationIcon.getClassName(),
@@ -74,7 +75,6 @@ NotificationBadge.prototype.setCount = function ( count ) {
this.options.notificationCountString = mw.message( 'echo-badge-count',
mw.language.convertNumber( count )
).text();
- this.options.isNotificationCountZero = count === 0;
this.render();
};