Skip to content

Commit

Permalink
API fix (displayOn removed from headless).
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Sep 25, 2018
1 parent a6ca55e commit 5a3ac01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ export class HeadlessCircuit {
shutdown() {
this.stopListening();
}
displayOn(elem) {
return this.makePaper(elem, this._graph);
}
makeGraph(data, subcircuits) {
const graph = new joint.dia.Graph();
this.listenTo(graph, 'change:buttonState', function(gate, sig) {
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export class Circuit extends HeadlessCircuit {
super.shutdown();
this.stop();
}
displayOn(elem) {
return this.makePaper(elem, this._graph);
}
makePaper(elem, graph) {
const paper = new joint.dia.Paper({
el: elem,
Expand Down

0 comments on commit 5a3ac01

Please sign in to comment.