B2G/gecko/browser/base/content/browser-social.js
// Called once, after window load, when the Social.provider object is initialized
Called once, after window load, when the Social.provider object is initialized
Called once after window load when the Social . provider object is initialized
function SocialToolbar_init() {
    this.button.setAttribute("image", Social.provider.iconURL);
    let removeItem = document.getElementById("social-remove-menuitem");
    let brandShortName = document.getElementById("bundle_brand").getString("brandShortName");
    let label = gNavigatorBundle.getFormattedString("social.remove.label",
                                                    [brandShortName]);
    let accesskey = gNavigatorBundle.getString("social.remove.accesskey");
    removeItem.setAttribute("label", label);
    removeItem.setAttribute("accesskey", accesskey);
    this.updateButton();
    this.updateProfile();
    this._dynamicResizer = new DynamicResizeWatcher();
  }
function SocialToolbar_init ( ) { this . button . setAttribute ( "image" , Social . provider . iconURL ) ; let removeItem = document . getElementById ( "social-remove-menuitem" ) ; let brandShortName = document . getElementById ( "bundle_brand" ) . getString ( "brandShortName" ) ; let label = gNavigatorBundle . getFormattedString ( "social.remove.label" , [ brandShortName ] ) ; let accesskey = gNavigatorBundle . getString ( "social.remove.accesskey" ) ; removeItem . setAttribute ( "label" , label ) ; removeItem . setAttribute ( "accesskey" , accesskey ) ; this . updateButton ( ) ; this . updateProfile ( ) ; this . _dynamicResizer = new DynamicResizeWatcher ( ) ; }
Called once, after window load, when the Social.provider object is initialized
Called once after window load when the Social . provider object is initialized