diff options
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 164fa8662..804c898e5 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -11,6 +11,8 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResource, SettingsResource, data) { 'use strict'; + this.isAutoPagingEnabled = true; + ItemResource.clear(); // distribute data to models based on key @@ -70,4 +72,12 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data) { console.log(itemIds); }; + this.autoPagingEnabled = () => { + return this.isAutoPagingEnabled; + }; + + this.markReadEnabled = () => { + return !SettingsResource.get('preventReadOnScroll'); + }; + });
\ No newline at end of file |