1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 14:37:49 +02:00

Refactor start/endComputation into lazyRedraw method

This commit is contained in:
Toby Zerner
2015-08-31 12:04:51 +09:30
parent 9f28b4e8dc
commit 0474f410a4
5 changed files with 14 additions and 16 deletions

View File

@@ -95,9 +95,7 @@ export default class PostsUserPage extends UserPage {
this.loading = true;
this.posts = [];
// Redraw, but only if we're not in the middle of a route change.
m.startComputation();
m.endComputation();
m.lazyRedraw();
this.loadResults().then(this.parseResults.bind(this));
}