diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-29 23:10:55 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-29 23:10:55 +0200 |
commit | 320304c909dc12c14b53335a7f32550809c06178 (patch) | |
tree | 20409afd21f88f098d5c72ebfe9b10525f5190f3 /js/controller/ContentController.js | |
parent | cba949fb0771c832326fc7886cced2bdc37e7536 (diff) |
dont mark read on scroll
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 |