The code example at https://dev.twitter.com/web/tweet-button#using-javascript if executed twice, will set window.twttr to undefined. Should return the already set window.twttr in this case.
Posted here because of https://dev.twitter.com/faq#8 Dont know though if this is the right place.
Thanks for the report, we’ll get that fixed ASAP.
Thank you for this, 7ur1ng. I’ve updated our documentation to ensure twttr is always defined correctly. Great catch.
twttr
Ben