diff --git a/light9/web/rdfdb-synced-graph.html b/light9/web/rdfdb-synced-graph.html --- a/light9/web/rdfdb-synced-graph.html +++ b/light9/web/rdfdb-synced-graph.html @@ -29,7 +29,11 @@ testGraph: {type: Boolean}, } } - + + onClear() { + console.log('reset') + } + connectedCallback() { super.connectedCallback(); this.graph = new SyncedGraph( @@ -41,7 +45,8 @@ 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'xsd': 'http://www.w3.org/2001/XMLSchema#', }, - function(s) { this.status = s; }.bind(this)); + function(s) { this.status = s; }.bind(this), + this.onClear.bind(this)); window.graph = this.graph; } }