Hi all,
I’ve been profiling my AngularJS application that contains an embedded timeline in one of the views. When the view gets destroyed so does the iframe and the script. However, it appears that the parent node of the iframe is stored in the retaining tree of the twitter object:
in HTMLElement @1110415 <-- Parent node of the script
targetEl in N @1122613 <-- Twitter widget
g in system / Context @761183
context in function() @1022431
[9] in Array @875739
2 in Window @827669
Since this state appears to be private, and there appears to be no “twttr.widgets.createTimeline.destroyTimeline” API to completely undo “twttr.widgets.createTimeline.createTimeline” ( see https://dev.twitter.com/docs/intents/events#factories), my application will continue to leak detached DOM nodes, as well as handlers.
Any workarounds? Any plans to support removal?
Thank you in advance,
Bob