I've rewrote something a bit, hope you don't mind:
https://github.com/miguelfreitas/twister-html/commit/c5d178779d5e1abe205e4169b4040e3cec2fc570
https://github.com/miguelfreitas/twister-html/commit/7542eddf5b0d68037b9cd006d2782b7aa91abd7d

we use fillElemWithTxt() to apply formatting to elements so now we search 
> there for *.link-shortened* elements, disable clicks on them and fetch 
> URIs. *then we put fetched URIs on all related to them links on document 
> and enable clicks.*
>
actually not on all because *$('.link-shortened[href="' + short + '"]')* 
can't select a) detached and b) not attached yet elements. so we may miss 
some URIs in some cases. 
https://github.com/miguelfreitas/twister-html/commit/08856095b098a57b301dc3a02778da896e360e45
 
covers case *a*, but *b* is a more complicated case, maybe it's need to 
attach all created elements to element attached to *twister.html.detached* 
immediately after creation.

-- 
You received this message because you are subscribed to the Google Groups 
"twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to