Addthis Buttons Are Disappeared?
In my backbone application I have used addthis button. My problem is that when i navigate the application to the one route and go back to the main route the buttons(fb, twitter, sh
Solution 1:
You need to not only call the addthis_widget script every time you load the template, but you need to clear out 'cached' variables.
if (window.addthis) {
window.addthis = null;
window._adr = null;
window._atc = null;
window._atd = null;
window._ate = null;
window._atr = null;
window._atw = null;
}
var uniqueUrl = "http://s7.addthis.com/js/300/addthis_widget.js#pubid=XXX";
$.getScript(uniqueUrl)
.done(function(script) {
addthis.init();
});
Post a Comment for "Addthis Buttons Are Disappeared?"