mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 20:27:44 +08:00
Add API method to allow soft stage updates
This commit is contained in:
@ -43,8 +43,10 @@ const forceRefresh = (from_construct_stage) => {
|
||||
}
|
||||
if (!_.isEqual(output, current)) {
|
||||
glyph.stages[stage.type] = output;
|
||||
for (let i = types.indexOf(stage.type) + 1; i < types.length; i++) {
|
||||
glyph.stages[types[i]] = null;
|
||||
if (!output || !current || stage.clearLaterStages(output, current)) {
|
||||
for (let i = types.indexOf(stage.type) + 1; i < types.length; i++) {
|
||||
glyph.stages[types[i]] = null;
|
||||
}
|
||||
}
|
||||
Session.set('editor.glyph', glyph);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user