Skip to content

Commit

Permalink
Properly support edit on subcircuits
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Feb 6, 2022
1 parent 7c7fa29 commit ca5104e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions view/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ class DigitalJS {
// with different layout parameters.
// Most likely, we'll need to patch it a bit ourselves but we should do that
// in a backward compatible way...
/* for (const cell of graph.getCells()) {
* if (cell.get('type') === 'Subcircuit') {
* reg_graph_listeners(cell.get('graph'));
* }
* } */
for (const cell of graph.getCells()) {
if (cell.get('type') === 'Subcircuit') {
reg_graph_listeners(cell.get('graph'));
}
}
};
reg_graph_listeners(this.circuit._graph);
this.circuit.on('postUpdateGates', (tick) => {
Expand Down

0 comments on commit ca5104e

Please sign in to comment.