From 6ccd4936f38864ae4f63f086b8ef911a0cc9c206 Mon Sep 17 00:00:00 2001 From: Miika Alonen Date: Fri, 15 Dec 2023 22:30:21 +0200 Subject: [PATCH] Fix for docs --- src/API.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/API.ts b/src/API.ts index 3e36155..b070d28 100644 --- a/src/API.ts +++ b/src/API.ts @@ -147,8 +147,8 @@ export class UserAPI { ? code : (this.app.selectedExample as string); } + this.clearPatternCache(); this.stop(); - this.resetAllFromCache(); this.play(); }; @@ -159,6 +159,7 @@ export class UserAPI { current_universe.example.candidate! = ""; current_universe.example.committed! = ""; } + this.clearPatternCache(); this.stop(); }; @@ -168,10 +169,10 @@ export class UserAPI { current_universe.example.candidate! = ""; current_universe.example.committed! = ""; } + this.clearPatternCache(); this.stop(); this.play(); this.app.exampleIsPlaying = true; - this.resetAllFromCache(); evaluateOnce(this.app, code as string); };