Clear away recent presets when switching to a new chapter

This commit is contained in:
Bryan Housel
2017-04-11 22:49:09 -04:00
parent 87618f9a6b
commit a16ae21874

View File

@@ -81,6 +81,8 @@ export function uiIntro(context) {
var chapters = chapterFlow.map(function(chapter, i) {
var s = chapterUi[chapter](context, curtain.reveal)
.on('done', function() {
context.presets().init(); // clear away "recent" presets
buttons.filter(function(d) {
return d.title === s.title;
}).classed('finished', true);