mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 23:55:25 +08:00
Use m.deferred instead of native Promise
This commit is contained in:
parent
6990b16de1
commit
02ff3416a7
@ -122,7 +122,8 @@ class PostStream extends Component {
|
||||
* @public
|
||||
*/
|
||||
update() {
|
||||
if (!this.viewingEnd) return Promise.resolve();
|
||||
if (!this.viewingEnd) return m.deferred().resolve().promise;
|
||||
|
||||
|
||||
this.visibleEnd = this.count();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user