From ccc717b339b5448bd76d1df814b144b318852ab1 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 13 Mar 2014 17:19:23 -0400 Subject: [PATCH] account posts jshint --- public/src/forum/accountposts.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/src/forum/accountposts.js b/public/src/forum/accountposts.js index 4f6e09307e..6612119c6e 100644 --- a/public/src/forum/accountposts.js +++ b/public/src/forum/accountposts.js @@ -1,3 +1,7 @@ +'use strict'; + +/* globals define, app, socket, templates, translator */ + define(['forum/accountheader'], function(header) { var AccountPosts = {}, loadingMore = false; @@ -35,8 +39,9 @@ define(['forum/accountheader'], function(header) { function onTopicsLoaded(posts) { templates.preload_template('accountposts', function() { - templates['accountposts'].parse(posts: []); - var html = templates.prepare(templates['accountposts'].blocks['posts']).parse({ + templates.accountposts.parse({posts: []}); + + var html = templates.prepare(templates.accountposts.blocks.posts).parse({ posts: posts });