Use m.deferred instead of native Promise

This commit is contained in:
David Sevilla Martín 2018-03-24 17:43:03 -04:00 committed by GitHub
parent 6990b16de1
commit 02ff3416a7

View File

@ -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();