Fix for docs

This commit is contained in:
2023-12-15 22:30:21 +02:00
parent 04dd6c079d
commit 6ccd4936f3

View File

@ -147,8 +147,8 @@ export class UserAPI {
? code ? code
: (this.app.selectedExample as string); : (this.app.selectedExample as string);
} }
this.clearPatternCache();
this.stop(); this.stop();
this.resetAllFromCache();
this.play(); this.play();
}; };
@ -159,6 +159,7 @@ export class UserAPI {
current_universe.example.candidate! = ""; current_universe.example.candidate! = "";
current_universe.example.committed! = ""; current_universe.example.committed! = "";
} }
this.clearPatternCache();
this.stop(); this.stop();
}; };
@ -168,10 +169,10 @@ export class UserAPI {
current_universe.example.candidate! = ""; current_universe.example.candidate! = "";
current_universe.example.committed! = ""; current_universe.example.committed! = "";
} }
this.clearPatternCache();
this.stop(); this.stop();
this.play(); this.play();
this.app.exampleIsPlaying = true; this.app.exampleIsPlaying = true;
this.resetAllFromCache();
evaluateOnce(this.app, code as string); evaluateOnce(this.app, code as string);
}; };