1
0
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:
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 * @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'