loadNearNumber(number) {
    if (this.posts().some(post => post && Number(post.number()) === Number(number))) {
      return m.deferred().resolve().promise;
    }

    this.reset();

    return app.store.find('posts', {
      filter: {discussion: this.discussion.id()},
      page: {near: number}
    }).then(this.show.bind(this));
  }
/**
   * Clear the stream and load posts near a certain number. Returns a promise.
   * If the post with the given number is already loaded, the promise will be
   * resolved immediately.
   *
   * @param {Integer} number
   * @return {Promise}
   */
Clear the stream and load posts near a certain number. Returns a promise.
If the post with the given number is already loaded, the promise will be
resolved immediately.

@param {Integer} number
@return {Promise}
Clear the stream and load posts near a certain number . Returns a promise . If the post with the given number is already loaded the promise will be resolved immediately . @param { Integer } number @return { Promise }
loadNearNumber(number) {
    if (this.posts().some(post => post && Number(post.number()) === Number(number))) {
      return m.deferred().resolve().promise;
    }
    this.reset();
    return app.store.find('posts', {
      filter: {discussion: this.discussion.id()},
      page: {near: number}
    }).then(this.show.bind(this));
  }
loadNearNumber ( number ) { if ( this . posts ( ) . some ( post => post && Number ( post . number ( ) ) === Number ( number ) ) ) { return m . deferred ( ) . resolve ( ) . promise ; } this . reset ( ) ; return app . store . find ( 'posts' , { filter : { discussion : this . discussion . id ( ) } , page : { near : number } } ) . then ( this . show . bind ( this ) ) ; }
Clear the stream and load posts near a certain number.
Clear the stream and load posts near a certain number .