Anybody run into a JavaScript error when trying to run Twitter For Web widgets.js on Internet Explorer 8 (IE8)? If so, do you know how to fix this or how to handle it gracef
Found the solution,
In widgets.js, there is a method which name is "delete" (line 364)
"delete": function(t) {
var e = i(t),
n = this.get(e.slice(0, -1));
n && delete n[e.slice(-1)]
},
and this method calling on line 1364
l.delete(["callbacks", t.callbackName])
delete is in Reserved Words list. So it causes "Expected identifier" error.
Firstly, take widgets.js to your own host.
js.src= "http://www.yourdomain.com/widgets.js";
change here with your domain.
After or before that step In widgets.js, have to change "delete" method name and caller line.
Anyone tried this? How to Add Fat-Free Social Buttons to Your Pages http://www.sitepoint.com/social-media-button-links/
"The majority of social networks offer URL-based sharing buttons which add little weight to the page and do not require third-party JavaScript. They’re not as well publicized but they’re not difficult to use."