From 5a3ac01ecc657614dd8052d565cd9b3556582127 Mon Sep 17 00:00:00 2001 From: Marek Materzok Date: Tue, 25 Sep 2018 22:12:20 +0200 Subject: [PATCH] API fix (displayOn removed from headless). --- src/circuit.js | 3 --- src/index.js | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/circuit.js b/src/circuit.js index c0e0363..9955140 100644 --- a/src/circuit.js +++ b/src/circuit.js @@ -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) { diff --git a/src/index.js b/src/index.js index c8cb2d9..5cb3fb7 100644 --- a/src/index.js +++ b/src/index.js @@ -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,