buggyj / tiddlyclip-plugin

tw plugin for tiddlyclip
MIT License
13 stars 1 forks source link

After a wikitext macro is saved, clips that are have inc set are included twice #7

Closed buggyj closed 8 years ago

buggyj commented 8 years ago

Saving a macro refreshes the widget tree from the root, which includes the tiddlyclip widget. The widget installs a listener on a div that generates a custom event when the div is modified (this implements the message box used be the browser add-on to send clips to the plugin). This happen each time it is rendered and is the causes of multiple copies of clips. This only happens for 'inc' as import sends a widget message, and the refresh removed the widget tree (seems plausible!)