summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Echo/modules/model/mw.echo.dm.NotificationsList.js')
-rw-r--r--Echo/modules/model/mw.echo.dm.NotificationsList.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/Echo/modules/model/mw.echo.dm.NotificationsList.js b/Echo/modules/model/mw.echo.dm.NotificationsList.js
index fa0fe020..341965da 100644
--- a/Echo/modules/model/mw.echo.dm.NotificationsList.js
+++ b/Echo/modules/model/mw.echo.dm.NotificationsList.js
@@ -20,13 +20,13 @@
* @cfg {string} [sourceURL] The URL for the article base of the remote
* group or wiki
* @cfg {string} [timestamp=0] A timestamp representing the latest item in
- * then list.
+ * the list.
*/
mw.echo.dm.NotificationsList = function MwEchoDmNotificationsList( config ) {
config = config || {};
// Parent constructor
- mw.echo.dm.NotificationsList.parent.call( this );
+ mw.echo.dm.NotificationsList.super.call( this );
this.name = config.name || 'local';
this.source = config.source || 'local';
@@ -200,10 +200,10 @@
var items = this.getItems();
return (
+ // In the cases where we want a single timestamp for a
+ // group, the group is usually all unread, which makes
+ // the first item its newest
items.length > 0 ?
- // In the cases where we want a single timestamp for a
- // group, the group is usually all unread, which makes
- // the first item its newest
items[ 0 ].getTimestamp() :
this.fallbackTimestamp
);