1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Remove unnecessary redraw

This commit is contained in:
Alexander Skvortsov
2020-07-06 19:23:19 -04:00
committed by Franz Liedke
parent b2917c8716
commit ba82969a58

View File

@@ -61,8 +61,6 @@ class PostStreamState {
const promise = this.loadNearNumber(number);
m.redraw(true);
this.locationType = 'number';
this.number = number;
this.needsScroll = true;
@@ -88,8 +86,7 @@ class PostStreamState {
const promise = this.loadNearIndex(index);
m.redraw(true);
console.log('promiseGenerated');
this.locationType = 'index';
this.index = index;
this.needsScroll = true;
@@ -115,6 +112,7 @@ class PostStreamState {
* @return {Promise}
*/
goToLast() {
m.redraw(true);
return this.goToIndex(this.count() - 1);
}