not working/firing



I am using Twitter API to post our campaign URL on Twitter. For that i am creating a Twitter button at run time with new campaign URL by this code snippet:

              // create a clone of the twitter share button template
                var clone = $('.twitter-share-button-template').clone()

              // fix up our clone
                clone.removeAttr("style"); // unhide the clone
                clone.attr("data-url", shareUrl);
                clone.attr("data-text", "Checkout this campaign");
                clone.attr("class", "twitter-share-button");

             // copy cloned button into div that we can clear later

Along with this i am also using tracking function to Twitter button to catch post successfully done on Twitter using‘click’, function()) for that my code snippet is:

    <script language="javascript" type="text/javascript">
    twttr.ready(function (twttr) {
  'tweet', function (event) {
                $("#btn_Distribution").attr('disabled', '');

Previously it was working fine. But from last few weeks this‘click’, function()) is not calling. Did Twitter change its scenario or change its calling way?

Please help me it urgent.