its not a const anymore

This commit is contained in:
Sam 2015-09-04 17:39:52 +10:00
parent 6709eaeb3c
commit 7a5c045399
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export default Ember.Component.extend({
if (this.get('loadingNotifications')) { return; } if (this.get('loadingNotifications')) { return; }
// estimate (poorly) the amount of notifications to return // estimate (poorly) the amount of notifications to return
const limit = Math.round(($(window).height() - headerHeight()) / 50); var limit = Math.round(($(window).height() - headerHeight()) / 50);
// we REALLY don't want to be asking for negative counts of notifications // we REALLY don't want to be asking for negative counts of notifications
// less than 5 is also not that useful // less than 5 is also not that useful
if (limit < 5) { limit = 5; } if (limit < 5) { limit = 5; }