mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +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
|
||||
* // constructor
|
||||
* this.subtree = new SubtreeRetainer(
|
||||
* () => this.props.post.freshness,
|
||||
* () => this.attrs.post.freshness,
|
||||
* () => this.showing
|
||||
* );
|
||||
* this.subtree.check(() => this.props.user.freshness);
|
||||
* this.subtree.check(() => this.attrs.user.freshness);
|
||||
*
|
||||
* // view
|
||||
* this.subtree.retain() || 'expensive expression'
|
||||
|
Reference in New Issue
Block a user