From 0ce0160af85dec54fc5e0d98027c06317689124c Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 20 Jul 2015 18:10:32 +0930 Subject: [PATCH] Rename method --- framework/core/js/forum/src/components/DiscussionList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/core/js/forum/src/components/DiscussionList.js b/framework/core/js/forum/src/components/DiscussionList.js index faf94a923..7a168fb50 100644 --- a/framework/core/js/forum/src/components/DiscussionList.js +++ b/framework/core/js/forum/src/components/DiscussionList.js @@ -82,8 +82,9 @@ export default class DiscussionList extends Component { * discussion results. * * @return {Object} + * @api */ - params() { + requestParams() { const params = Object.assign({include: ['startUser', 'lastUser']}, this.props.params); params.sort = this.sortMap()[params.sort]; @@ -150,7 +151,7 @@ export default class DiscussionList extends Component { return m.deferred().resolve(preloadedDiscussions).promise; } - const params = this.params(); + const params = this.requestParams(); params.page = {offset}; params.include = params.include.join(',');