1
0
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:
Alexander Skvortsov
2020-08-10 00:51:31 -04:00
committed by Franz Liedke
parent 991d90bf4a
commit 529f8e5f32

View File

@@ -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'