mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Add default parameter value
This is actually relied on already by not passing the parameter in other methods.
This commit is contained in:
@@ -81,7 +81,7 @@ class PostStreamState {
|
|||||||
* @param {Boolean} noAnimation
|
* @param {Boolean} noAnimation
|
||||||
* @return {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
goToNumber(number, noAnimation) {
|
goToNumber(number, noAnimation = false) {
|
||||||
// If we want to go to the reply preview, then we will go to the end of the
|
// If we want to go to the reply preview, then we will go to the end of the
|
||||||
// discussion and then scroll to the very bottom of the page.
|
// discussion and then scroll to the very bottom of the page.
|
||||||
if (number === 'reply') {
|
if (number === 'reply') {
|
||||||
@@ -111,7 +111,7 @@ class PostStreamState {
|
|||||||
* @param {Boolean} noAnimation
|
* @param {Boolean} noAnimation
|
||||||
* @return {Promise}
|
* @return {Promise}
|
||||||
*/
|
*/
|
||||||
goToIndex(index, noAnimation) {
|
goToIndex(index, noAnimation = false) {
|
||||||
this.paused = true;
|
this.paused = true;
|
||||||
|
|
||||||
this.loadPromise = this.loadNearIndex(index);
|
this.loadPromise = this.loadNearIndex(index);
|
||||||
|
Reference in New Issue
Block a user