Skip to content

Commit

Permalink
Remove unnecessary calls to hw.news.render().
Browse files Browse the repository at this point in the history
  • Loading branch information
Leftium committed May 7, 2022
1 parent 57c3082 commit 4845c1a
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 42 deletions.
11 changes: 7 additions & 4 deletions assets/js/hw.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,7 @@
};

hw.init = function () {
console.log('INIT JKM 2022.05.07 853');
hw.news.render();
console.log('INIT JKM 2022.05.07 934');
ruto.init();

function renderColorScheme() {
Expand Down Expand Up @@ -538,8 +537,12 @@
ruto.go('/');
}
})
.add('/', 'home')
.add(/^\/date\/(\d+)$/i, 'home')
.add('/', 'home', function() {
hw.news.render();
})
.add(/^\/date\/(\d+)$/i, 'home', function() {
hw.news.render();
})
.add('/about', 'about')
.add(/^\/item\/(\d+)$/i, 'comments', function (path, id) {
hw.comments.render(id);
Expand Down
30 changes: 15 additions & 15 deletions js/hw-ios-2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/hw-ios-2.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 4845c1a

Please sign in to comment.