This code throws an error both on Chrome and Firefox (Mac OS X):
twttr.ready(function (twttr){
twttr.events.bind('tweet', function (event) {
// Do something there
});
});
On Firefox gives this error:
TypeError: e.init is not a function (widgets.js line 42)
On Chrome gives:
Uncaught TypeError: Object function u(e){if(!e)return;var t,r,i,o,u;n.apply(this,[e]),t=this.params(),r=t.size||this.dataAttr(“size”),i=t.showScreenName||this.dataAttr(“show-screen-name”),u=t.count||this.dataAttr(“count”),this.classAttr.push(“twitter-follow-button”),this.showScreenName=i!=“false”,this.showCount=t.showCount!==!1&&this.dataAttr(“show-count”)!=“false”,u==“none”&&(this.showCount=!1),this.explicitWidth=t.width||this.dataAttr(“width”)||"",this.screenName=t.screen_name||t.screenName||s.screenName(this.attr(“href”)),
this.preview=t.preview||this.dataAttr(“preview”)||"",this.align=t.align||this.dataAttr(“align”)||"",this.size=r==“large”?“l”:“m”} has no method ‘init’ widgets.js:42