Hello,
I'm still working on developing a plugin using D3.js to vizualise and navigate into TW table of content and I'm currently working on a JavaScript Widget to automatically generate a json that describes this table of content.
As I want the visualisation to be automaticcally updated in case of change (addition, suppression, rename...) in the table of content, I use a "detector" tiddler that contains <<toc myRootTag>>.
and then I rely on the refresh part of the widget with the following syntax
```
myWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.data || changedTiddlers[this.myDataTiddler]) {
this.refreshSelf();
return true;
}
return false;
};
```
"data" of course points to "detector"....
But actually the detector does not work, as its content (<<toc myRootTag>>) remains the same, just the parsing of this instruction is different...
How could I detect the change in parsing rather than the tiddler text ?
Hope I'm clear enough, thank you for your help
Silverfox