diff options
author | 2019-07-10 14:34:30 +0200 | |
---|---|---|
committer | 2019-07-10 14:34:30 +0200 | |
commit | 052947735bae0f2c5c6876ba60941aa84888576e (patch) | |
tree | 97585c973ad1bbebf11f2bf89204d348eb2bd61f /src/stores/lib/Reaction.js | |
parent | Merge branch 'release/5.2.0-beta.2' (diff) | |
download | ferdium-app-052947735bae0f2c5c6876ba60941aa84888576e.tar.gz ferdium-app-052947735bae0f2c5c6876ba60941aa84888576e.tar.zst ferdium-app-052947735bae0f2c5c6876ba60941aa84888576e.zip |
fix reactions and workspace cleanup logic
Diffstat (limited to 'src/stores/lib/Reaction.js')
-rw-r--r-- | src/stores/lib/Reaction.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/lib/Reaction.js b/src/stores/lib/Reaction.js index f2642908f..f8009b7f6 100644 --- a/src/stores/lib/Reaction.js +++ b/src/stores/lib/Reaction.js | |||
@@ -13,15 +13,15 @@ export default class Reaction { | |||
13 | 13 | ||
14 | start() { | 14 | start() { |
15 | if (!this.isRunning) { | 15 | if (!this.isRunning) { |
16 | this.dispose = autorun(() => this.reaction()); | 16 | this.dispose = autorun(this.reaction); |
17 | this.isActive = true; | 17 | this.isRunning = true; |
18 | } | 18 | } |
19 | } | 19 | } |
20 | 20 | ||
21 | stop() { | 21 | stop() { |
22 | if (this.isRunning) { | 22 | if (this.isRunning) { |
23 | this.dispose(); | 23 | this.dispose(); |
24 | this.isActive = false; | 24 | this.isRunning = false; |
25 | } | 25 | } |
26 | } | 26 | } |
27 | } | 27 | } |