persist surface op selections with minimal face data

This commit is contained in:
Stewart Allen 2022-04-06 21:25:11 -07:00
commit de0c224f6d
3 changed files with 96 additions and 62 deletions

View file

@ -110,6 +110,7 @@ const widgets = api.widgets = {
count() { return WIDGETS.length },
each(fn) { WIDGETS.slice().forEach(widget => fn(widget)) },
for(fn) { widgets.each(fn) },
forid(id) { return WIDGETS.filter(w => w.id === id)[0] }
};
});