Lines Matching refs:notifs
5883 var processNotif = mxUtils.bind(this, function(notifs) argument
5885 notifs = notifs.filter(function(notif)
5894 for (var i = 0; i < notifs.length; i++)
5896 notifs[i].isNew = (!lastRead || notifs[i].timestamp > lastRead);
5899 this.showNotification(notifs, lsReadFlag);
5919 var notifs = JSON.parse(req.getText());
5922 notifs.sort(function(a, b)
5929 localStorage.setItem(cachedNotifKey, JSON.stringify({ts: Date.now(), notifs: notifs}));
5933 processNotif(notifs);
5939 processNotif(cachedNotif.notifs);
5943 App.prototype.showNotification = function(notifs, lsReadFlag) argument
5945 var newCount = notifs.length;
5951 for (var i = 0; i < notifs.length; i++)
5953 if (notifs[i].isNew)
5998 if (isLocalStorage && notifs[0])
6000 localStorage.setItem(lsReadFlag, notifs[0].timestamp);
6103 for (var i = 0; i < notifs.length; i++)
6134 })(this, notifs[i]);