summaryrefslogtreecommitdiffstats
path: root/js/directive
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-18 20:18:01 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-18 20:18:01 +0200
commit5fb9e4a435d77542951f8e8ab21ac85d6a7e0721 (patch)
treed4efb52c335b932305137b43c376c38679c78b5b /js/directive
parent8f35519c6f205ff5574aeece68fc93e2c779201b (diff)
autopage later to give an impression that the app is fast :P
Diffstat (limited to 'js/directive')
-rw-r--r--js/directive/NewsScroll.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/directive/NewsScroll.js b/js/directive/NewsScroll.js
index a2603bb67..d4a46a79f 100644
--- a/js/directive/NewsScroll.js
+++ b/js/directive/NewsScroll.js
@@ -7,7 +7,7 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.directive('newsScroll', function ($timeout, ITEM_BATCH_SIZE,
+app.directive('newsScroll', function ($timeout, ITEM_AUTO_PAGE_SIZE,
MARK_READ_TIMEOUT, SCROLL_TIMEOUT) {
'use strict';
var timer;
@@ -86,7 +86,7 @@ app.directive('newsScroll', function ($timeout, ITEM_BATCH_SIZE,
allowScroll = true;
}, SCROLL_TIMEOUT*1000);
- autoPage(ITEM_BATCH_SIZE, elem, scope);
+ autoPage(ITEM_AUTO_PAGE_SIZE, elem, scope);
// dont stack mark read requests
if (timer) {