mirror of
https://github.com/flarum/core.git
synced 2025-08-10 02:17:37 +02:00
SubtreeRetainer: change docblock "this.props" to "this.attrs"
This commit is contained in:
committed by
Franz Liedke
parent
991d90bf4a
commit
529f8e5f32
@@ -6,10 +6,10 @@
|
|||||||
* @example
|
* @example
|
||||||
* // constructor
|
* // constructor
|
||||||
* this.subtree = new SubtreeRetainer(
|
* this.subtree = new SubtreeRetainer(
|
||||||
* () => this.props.post.freshness,
|
* () => this.attrs.post.freshness,
|
||||||
* () => this.showing
|
* () => this.showing
|
||||||
* );
|
* );
|
||||||
* this.subtree.check(() => this.props.user.freshness);
|
* this.subtree.check(() => this.attrs.user.freshness);
|
||||||
*
|
*
|
||||||
* // view
|
* // view
|
||||||
* this.subtree.retain() || 'expensive expression'
|
* this.subtree.retain() || 'expensive expression'
|
||||||
|
Reference in New Issue
Block a user