diff --git a/client/helpers/handlebars.js b/client/helpers/handlebars.js index 886df5cc1..ca650470a 100644 --- a/client/helpers/handlebars.js +++ b/client/helpers/handlebars.js @@ -1,7 +1,7 @@ // ** Handlebars helpers ** Handlebars.registerHelper('eachWithRank', function(items, options) { - console.log('======= eachWithRank ========') + // not used, forces multiple renders // note: cannot use this because it would delete and recreate all nodes items.rewind() var out = ''; diff --git a/client/helpers/router.js b/client/helpers/router.js index 5c7a07167..8c48be38f 100644 --- a/client/helpers/router.js +++ b/client/helpers/router.js @@ -248,7 +248,6 @@ PostsListController = RouteController.extend({ ] }, data: function () { - console.log('// postsList data function') var view = this.path == '/' ? 'top' : this.path.split('/')[1]; var limit = this.params.limit || getSetting('postsPerPage', 10); var parameters = getParameters(view, limit, this.params.slug); @@ -256,7 +255,7 @@ PostsListController = RouteController.extend({ Session.set('postsLimit', limit); // get posts and decorate them with rank property - // note: using handlebars helper instead + // note: not actually used; find better way // posts = posts.map(function (post, index) { // post.rank = index; // return post; diff --git a/client/views/posts/post_item.js b/client/views/posts/post_item.js index 531cd9aec..bfb6de139 100644 --- a/client/views/posts/post_item.js +++ b/client/views/posts/post_item.js @@ -74,9 +74,6 @@ Template.post_item.helpers({ }, pointsUnitDisplayText: function(){ return this.votes == 1 ? 'point' : 'points'; - }, - lastRender: function(){ - return Session.get('postItemLastRender'); } }); diff --git a/client/views/posts/posts_list.js b/client/views/posts/posts_list.js index 7901fb503..cfea37489 100644 --- a/client/views/posts/posts_list.js +++ b/client/views/posts/posts_list.js @@ -1,5 +1,6 @@ Template.posts_list.helpers({ posts : function () { + // not used, forces multiple re-renders // this.postsList.rewind(); // var posts = this.postsList.map(function (post, index, cursor) { // post.rank = index;