Skip to content

Commit

Permalink
fix: made TopicList.onTopicsLoaded private [breaking]
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Jul 12, 2021
1 parent 62cd5f6 commit 07f25d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/src/modules/topicList.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ define('topicList', [

handleBack.init(function (after, handleBackCallback) {
loadTopicsCallback(after, 1, function (data, loadCallback) {
TopicList.onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, 1, function () {
onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, 1, function () {
handleBackCallback();
loadCallback();
});
Expand Down Expand Up @@ -192,7 +192,7 @@ define('topicList', [
}

loadTopicsCallback(after, direction, function (data, done) {
TopicList.onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, direction, done);
onTopicsLoaded(templateName, data.topics, ajaxify.data.showSelect, direction, done);
});
};

Expand All @@ -219,7 +219,7 @@ define('topicList', [
});
}

TopicList.onTopicsLoaded = function (templateName, topics, showSelect, direction, callback) {
function onTopicsLoaded(templateName, topics, showSelect, direction, callback) {
if (!topics || !topics.length) {
$('#load-more-btn').hide();
return callback();
Expand Down

0 comments on commit 07f25d8

Please sign in to comment.