removing console log and removing a bit of code that would cause infinite loader to take 2.5s extra each round :P

v1.18.x
Julian Lam 11 years ago
parent d8c4609ee0
commit 917dfe74e6

@ -957,7 +957,6 @@ define(['composer'], function(composer) {
});
setTimeout(function() {
console.log(infiniteLoaderActive);
if (scrollTop + windowHeight == jQuery(document).height() && !infiniteLoaderActive) {
pagination.innerHTML = Topic.postCount + ' out of ' + Topic.postCount;
progressBar.width('100%');

@ -204,9 +204,7 @@ SocketTopics.loadMore = function(socket, data, callback) {
end = start + 9;
topics.getTopicPosts(data.tid, start, end, socket.uid, function(err, posts) {
setTimeout(function() {
callback(err, {posts: posts});
}, 2500);
callback(err, {posts: posts});
});
};

Loading…
Cancel
Save