Bug 797667 - Add back the SocialToolbar.button getter. r=markh

--HG--
extra : rebase_source : 0b6627797e3f5d46e5e94c8dcfd5d9dceaebe257
This commit is contained in:
Jared Wein 2012-10-03 21:00:57 -07:00
parent bf74ef16e1
commit 6912360516

View File

@ -535,11 +535,15 @@ let SocialShareButton = {
var SocialToolbar = {
// Called once, after window load, when the Social.provider object is initialized
init: function SocialToolbar_init() {
document.getElementById("social-provider-button").setAttribute("image", Social.provider.iconURL);
this.button.setAttribute("image", Social.provider.iconURL);
this.updateButton();
this.updateProfile();
},
get button() {
return document.getElementById("social-provider-button");
},
updateButtonHiddenState: function SocialToolbar_updateButtonHiddenState() {
let tbi = document.getElementById("social-toolbar-item");
tbi.hidden = !Social.uiVisible;